Re: How to combine QueryParser and Wildcard search

2010-11-19 Thread Adriano Crestani
Hi Pulkit, In case you are using the standard contrib query parser (equivalent to lucence QP), you may want to create a QueryNodeProcessor, that will convert TermQueryNodes to WildcardQueryNodes, and attach it to the processor pipeline: StandardQueryParser qp = new StandardQueryParser(); ((QueryN

Re: How to combine QueryParser and Wildcard search

2010-11-19 Thread Israel Tsadok
I'm not sure what you're trying to do, but it seems to me that your best bet is to rewrite the query returned from the QueryParser. Just traverse the BooleanQuery clauses, converting any TermQuery to a WildcardQuery. You can then have control over what transformation exactly you want to perform. I

How to combine QueryParser and Wildcard search

2010-11-18 Thread Pulkit Singhal
Hello, I was wondering if there is any API call in Lucene that allows something like the following: Step 1: Take the user input "hello world" you are beautiful Step 2: QueryParser does its thing defaultField:hello world defaultField:you defaultField:are defaultField:beautiful Step 3: And someho