lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nada Mimouni" <mimo...@tk.informatik.tu-darmstadt.de>
Subject Analyse TermQuery and PhraseQuery
Date Thu, 19 Feb 2009 10:54:20 GMT


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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message