hi. i think i used to (programmtically) search with a query term like
-deck:234324 nid:(132343243432,353423555,89235235)
i’ve just upgraded to 2.1.35 (from 2.0? i’m unclear, sadly). i now get an error (see below). in the current docs, i don’t see anything to indicate my above query should work. did it ever work? is there anything similar? from the current docs, i assume i can (nid:234234324 or nid:39457355); is there any siginifcant performance penalty for doing that? i tend to have hundreds if not thousands of terms.
thanks! Q: enjoying rust? cheers, Greg
Traceback (most recent call last):
File "/home/minshall/usr/bin/bin-scripts/ankiimport", line 480, in <module>
main()
File "/home/minshall/usr/bin/bin-scripts/ankiimport", line 475, in main
doimport(cg.col, args.deckname, ifilepath, str2list(args.mapping),
File "/home/minshall/usr/bin/bin-scripts/ankiimport", line 429, in doimport
superset(col, deckname, snids)
File "/home/minshall/usr/bin/bin-scripts/ankiimport", line 349, in superset
ids = col.findCards("-deck:%s nid:%s" % (deckname, snids))
File "/usr/lib/python3.9/site-packages/anki/collection.py", line 450, in find_cards
return self.backend.search_cards(search=query, order=mode)
File "/usr/lib/python3.9/site-packages/anki/rsbackend_gen.py", line 82, in search_cards
output.ParseFromString(self._run_command(9, input))
File "/usr/lib/python3.9/site-packages/anki/rsbackend.py", line 267, in _run_command
raise proto_exception_to_native(err)
anki.rsbackend.InvalidInput: Invalid search - please check for typing mistakes.