Hi all, I've been using lucene for some number of months now and for the most part it has worked great. One thing that we have had problems with is prefix queries expanding to the point of making the search fail due to many terms. The part of our application that this happens is people entering the first part of a part number which is practically a unique key and we don't really care about having contribute to the score of the hit. Along those lines I was thinking about adding some functionality to the code that expands prefix queries to create a filter and use that instead of just expanding the individual terms. Can anyone see any major issues with doing it this way? Has anyone else tried to do something like this? Any pointers on what I should be looking at or maybe gotchas to avoid?
Any advice would be appreciated. Thanks.