Re: formalizing a query

2007-08-17 Thread Abu Abdulla
Hi, I have done using this: final QueryParser filterQueryParser = new QueryParser("", new KeywordAnalyzer()); hits = indexSearcher.search(query, new QueryWrapperFilter(filterQueryParser.parse(filterQ

Re: formalizing a query

2007-08-15 Thread Sagar Naik
Hey, I think u can try : MultiFieldQueryParser.parse(String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer) The flags arrray will get u ORs and ANDs in places u need - Sagar Naik Abu Abdulla alhanbali wrote: Thanks for the help, please provide the code to

Re: formalizing a query

2007-08-14 Thread Abu Abdulla alhanbali
Thanks for the help, please provide the code to do that. I tried with this one but it didn't work: Query filterQuery = MultiFieldQueryParser.parse(new String{query1, query2, query3, query4, }, new String{field1, field2, field1, field2, ... }, new KeywordAnalyzer()); this results in: field

Re: formalizing a query

2007-08-10 Thread Erick Erickson
I *strongly* suggest you get a copy of Luke. It'll allow you to form queries and see the results and you can then answer this kind of question as well as many others. Meanwhile, please see http://lucene.apache.org/java/docs/queryparsersyntax.html Erick On 8/10/07, Abu Abdulla alhanbali <[EMAIL P