Re: lucene3.0.3 | get correct document in case of multiple Boolean query in search criteria

2011-02-22 Thread Ranjit Kumar
Hi, As, mention above i am using query like: criteria = (sql OR sqlserver OR "sql server") AND java AND delphi In the above scenario i need hit(document) containing at least one occurrence of (sql OR sqlserver OR "sql server"). Also java and delphi must present in document. Still I have not g

Re: lucene3.0.3 | get correct document in case of multiple Boolean query in search criteria

2011-02-21 Thread Ranjit Kumar
Hi Ian; As you told we can use explicitly specify ANDs and ORs operator set parser. Otherwise we can use default parser to get hit(document) which is ORs. Do not gives correct hit(document)!!! My question is that, Is there any parser we can use in case of multiple Boolean clause in search stri

Re: lucene3.0.3 | get correct document in case of multiple Boolean query in search criteria

2011-02-18 Thread Ian Lea
OR is the default operator, but since you are explicitly specifying ANDs and ORs, the default is probably not relevant anyway. See what query.toString() says. See also http://lucene.apache.org/java/3_0_3/queryparsersyntax.html and http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_no_

lucene3.0.3 | get correct document in case of multiple Boolean query in search criteria

2011-02-18 Thread Ranjit Kumar
hi, I am using query like criteria = (sql OR sqlserver OR "sql server") AND java AND delphi . In this case when i am using default parser as code mention below: QueryParser parser = new QueryParser(Version.LUCENE_CURRENT, field, analyzer); Query query = parser.parse(criteria); I am getting sa