lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Phrase search on NOT_ANALYZED content
Date Wed, 03 Mar 2010 21:29:31 GMT
NOT_ANALYZED is probably not what you want.
NOT_ANALYZED stores the entire input as
a *single* token, so you can never match on
anything except the entire input.

What did you hope to accomplish by indexint
NOT_ANALYZED? That's actually a pretty
specialized thing to do, perhaps there's a better
way to accomplish your goal.


On Wed, Mar 3, 2010 at 4:11 PM, Murdoch, Paul <>wrote:

> If I have indexed some content that contains some words and a single
> whitespace between each word as NOT_ANALYZED, is it possible to perform
> a phrase search on that a portion of that content?  I'm indexing and
> searching with the StandardAnalyzer 2.9.  Using the KeywordAnalyzer
> works, but I have to type in the entire content as it was indexed.  I
> would like to search for a phrase in the content, but not all of the
> content, preferably with the StandardAnalyzer.
> Thanks,
> Paul

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message