bbigrasI have another question. For one of my "problem" a solution was to use RegexQuery. It seems that I have to do the query myself, but can I still allow my users to search for something like "client:Bob.* and color:green". I mean that if I do the query myself, I have no idea if I can handle the logic stuff like "and".
With this work will some of the query parser functions become public? If i understand the query parser right I think i want to change this line in convert literal to query https://github.com/tantivy-search/tantivy/blob/main/src/query/query_parser/query_parser.rs#L533 to check to see if it looks like it could be a regex and use RegexQuery::from_pattern? Or am i very wrong about how this should work?
There is no plan to put regex into the query parser, I am afraid. You need to implement your own query parser.
I meet an error:
thread '<unnamed>' panicked at 'Field norm not found for field "id". Was it market as indexed during indexing.', /home/mpc/.cargo/git/checkouts/tantivy-9e77a871f83bfdf7/3aff18c/src/core/segment_reader.rs:138:13
I spent few hours and found that: the
id is not STORED.
I feel this bug information should be improved. It shold notify me the cause may be the field was not STORED.