Setting default lookup queries for QueryParser

When my users enter the term "word", I would like it to be treated as a wildcard query for "word *" so that all terms starting with "word" are found. Is there a way to tell the QueryParser to automatically generate templated queries or do I need to parse the query myself? This shouldn't be a problem for simple queries, but it can be difficult for more complex queries.

+2


a source to share


1 answer


Unless I'm missing something - a per-query lookup is usually impractical - it's very expensive and can cause a lot of problems. If you are trying to find results including stem options (e.g. winner -> winner, win, etc.), you should consider the n-gram approach.



0


a source







All Articles