: Our QParser plugin will perform queries against directory documents and : return any file document that has the matching directory id(s). So the : plugin transforms the query to something like : : q:+(directory_id:4 directory:10) +directory_id:(4) ... : Currently the parser plugin is doing the lookup queries via the standard : request handler. The problem with this approach is that the look up : queries are going to be analyzed twice. This only seems to be a problem
...you lost me there. if you are taking part of the query, and using it to get directory ids, and then using those directory ids to build a new query, why are you ever passing the output from one query parser to another query parser? You take the input string, you let the LuceneQParser parse it and use it to search against "Directory" documents, and then you iterate over hte results, and get an ID from them. You should be using those IDs directly to build your new query. Honestly: even if you were using those ids to build a query string, and then pass that string to hte analyzer, i don't see why stemming would cause any problems for you if the ids are numbers (like in your example) -Hoss