Performance/scoring impacts with multiple occurrences of a field

2013-10-07 Thread Earl Hood

Using Lucene 3.

I know Lucene supports multiple occurrences of a field, and if one
searches on that field, all fields are checked for hits.  One question I
have is if there is a performance difference between if all the data I
want to index is represented by a single field vs multiple fields of the
same name?

The other question is if scoring of results differ between the use of a
single field vs multiple fields of the same name?

For results ranking, I am guessing there is an effect based on

and

But I am not sure if this only applicable for cases of different fields
names vs fields of the same name.

--ewh

-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



Re: Performance/scoring impacts with multiple occurrences of a field

2013-10-11 Thread Ian Lea
With multiple fields of the same name vs a single field I doubt you'd
be able to tell the difference in performance or matching or scoring
in normal use.  There may be some matching/ranking effect if you are
looking at, say, span queries across the multiple fields.

Try it out and see what happens.


--
Ian.


On Tue, Oct 8, 2013 at 3:03 AM, Earl Hood  wrote:
> Using Lucene 3.
>
> I know Lucene supports multiple occurrences of a field, and if one
> searches on that field, all fields are checked for hits.  One question I
> have is if there is a performance difference between if all the data I
> want to index is represented by a single field vs multiple fields of the
> same name?
>
> The other question is if scoring of results differ between the use of a
> single field vs multiple fields of the same name?
>
> For results ranking, I am guessing there is an effect based on
> 
> and
> 
> But I am not sure if this only applicable for cases of different fields
> names vs fields of the same name.
>
> --ewh
>
> -
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>

-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org