Re: Forcing lucene to use specific field when processing parsed query

2013-07-06 Thread Puneet Pawaia
ck Krupansky > > -Original Message- From: Puneet Pawaia > Sent: Saturday, July 06, 2013 12:54 PM > To: java-user@lucene.apache.org > Subject: Re: Forcing lucene to use specific field when processing parsed > query > > Hi Uwe > Unfortunately, at the stage I a

Re: Forcing lucene to use specific field when processing parsed query

2013-07-06 Thread Jack Krupansky
Sent: Saturday, July 06, 2013 12:54 PM To: java-user@lucene.apache.org Subject: Re: Forcing lucene to use specific field when processing parsed query Hi Uwe Unfortunately, at the stage I am required to do this, I do not have the query text. I only have the parsed query. I thought of iterating thro

Re: Forcing lucene to use specific field when processing parsed query

2013-07-06 Thread Puneet Pawaia
Hi Uwe Unfortunately, at the stage I am required to do this, I do not have the query text. I only have the parsed query. I thought of iterating through the query clauses etc but could not find how to. What function allows me to do this ? Regards Puneet Pawaia On 6 Jul 2013 20:06, "Uwe Schindler"

Re: Forcing lucene to use specific field when processing parsed query

2013-07-06 Thread Uwe Schindler
Hi, You can only do this manually with instanceof checks and walking through BooleanClauses. The better way to fix your problem would be to change your query parser, e.g. by overriding getFieldQuery and other protected methods to enforce a specific field while parsing the query string. Uwe

Forcing lucene to use specific field when processing parsed query

2013-07-06 Thread Puneet Pawaia
Hi all, I am using Lucene.Net 3.0.3 and need to search in a specific field (ignoring any fields specified in the query). I am given a parsed Lucene Query so I am unable to generate a parsed query with my required field. Is there any functionality in Lucene that allows me to loop through the terms