lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Fields with the same name
Date Wed, 24 Mar 2010 20:27:51 GMT
I don't think so, but a quick way to check would be to look at your
index with a copy of Luke and see what the actual tokens are.

But I'm not sure it matters, I don't think you *can* make things work
out well; your query-time analysis will be...er...difficult. You only
get to specify one analyzer per field, should it tokenize or not? Or
are you going to programmatically use different analyzers depending
upon some conditions? What if you want some of your tokens
analyzed and some not *in the same query* (e.g. several
OR clauses)? Or are you manually building up a BooleanQuery that's
"interesting"?

I think this will be a maintenance nightmare.

Why on earth would you want to do this anyway? Perhaps if you
described your use case we could suggest a better alternative.

Best
Erick

On Wed, Mar 24, 2010 at 2:38 PM, Murdoch, Paul <PAUL.B.MURDOCH@saic.com>wrote:

> Hi,
>
>
>
> I have a quick question. If I have an index where some text values are
> indexed under the same field name, but some are ANALYZED and some are
> NOT_ANALYZED, does the last value's flags change the flags for the whole
> field name?  For instance if I index 3 sentences under a field name as
> ANALYZED and then index a 4th sentence as NOT_ANALYZED under the same
> field name, are all 4 sentences now viewed as NOT_ANALYZED in the index?
>
>
>
> Thanks,
>
>
>
> Paul
>
>
>
>

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