Hello,

String ws = " ";
String query = 
"The"+ws+"president"+ws+"of"+ws+"the"+ws+"USA"+ws+"is"+ws+""\Barak Obama\"";
Query q = QueryParser.parse(query, new StandardAnalyser());
Query q = QueryParser.parse(query, new WhitespaceAnalyser());


In this example:
- could we create a query in such a format (combine terms and phrases)?
- what will be the result of the analysis?
- what should I do to get this hits {president, USA, Barak Obama}?  


Thank you for help.

Best 
Nada

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to