lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AlexElba <ramal...@yahoo.com>
Subject Re: how to search for starts with multiple words in lucene
Date Wed, 26 Nov 2008 19:30:11 GMT

Hi,
I think you can achieve your goal using StandardAnalyzer during indexing and
for search, and use WildcardQuery for Query I think it will work!!


naveen.a wrote:
> 
> Hi,
> 
> Below is a document in lucene
> ---------------------------------------------
> Field   Value
> ---------------------------------------------
> ID:1
> 110_a:library and information
> ---------------------------------------------
> I need to search for starts with logic, below are the search cases for the
> above document
> 
> ------------------------------------------------------------------------------
> Query                                             Result
> ------------------------------------------------------------------------------
> 110_a:l*                                           ID - 1
> 110_a:library*                                   ID - 1
> 110_a:library *                                  No Results
> 110_a:library a*                                No Results
> 110_a:"library a*"                              No Results
> ------------------------------------------------------------------------------
> here, if i apply single word for starts with search, it is found,
> but if i add any space after the first word, it is not found
> 
> so, how to apply the query to search for starts with multiple words
> 

-- 
View this message in context: http://www.nabble.com/how-to-search-for-starts-with-multiple-words-in-lucene-tp20697741p20707534.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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