lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrzej Bialecki ...@getopt.org>
Subject Re: PrefixQuery and hieracical queries problem
Date Fri, 19 Mar 2004 16:49:41 GMT
Dennis Thrys√łe wrote:

> Andrzej Bialecki wrote:
> 
>> Anyway.. I should've added that for Phrase Queries to work the text 
>> must be tokenized. So, the best way in this case would be to use
>> WhitespaceAnalyzer for the uri field, 
> 
> 
> I've figured out how to use the WhitespaceAnalyzer for creating the 
> PhraseQuery, but I suspect I should use the same analyzer when indexing 
> (sot the leading slash isn't removed).
> 
> This is a problem though, because I'm using the StopAnalyzer. Have I 
> overlooked a way to specify a specific analyzer for a single field when 
> indexing?

  PerFieldAnalyzerWrapper.

> 
>> and store it as Field.Text(...).
> 
> 
> Or UnStored?

Yes - if you don't need to retrieve it later; because you cannot get 
back the content of an UnStored field, as the name itself suggests.

-- 
Best regards,
Andrzej Bialecki

-------------------------------------------------
Software Architect, System Integration Specialist
CEN/ISSS EC Workshop, ECIMF project chair
EU FP6 E-Commerce Expert/Evaluator
-------------------------------------------------
FreeBSD developer (http://www.freebsd.org)


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message