dcsimg
How to index by Phrase
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Atif_Ali
Posted On:   Friday, August 20, 2004 11:25 AM



For example in lucene term is "population" and "population of india" is phrase(more then one term).


I want to index phrase by termPosition so when i will search in 2 text documents doc1 and doc2 will give only "population of india" not count in search only "popultion" or "india" in the documents.



Can anyone explain by example code

Re: How to index by Phrase

Posted By:   Otis_Gospodnetic  
Posted On:   Friday, August 20, 2004 05:44 PM

You don't need to do anything special at indexation time. You just need to enter your query as a phrase query. If you are using the QueryParser, use the phrase syntax (e.g. "population of india").
About | Sitemap | Contact