lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: FieldCache & DocValues Filter
Date Thu, 06 Jun 2013 09:35:19 GMT
FieldCacheTermsFilter will use your docvalues field.

Its confusing: I think we should rename FieldCacheXXX to DocValuesXXX.

On Thu, Jun 6, 2013 at 2:22 AM, Arun Kumar K <arunk786@gmail.com> wrote:

> Hi Guys,
>
> I was trying to better the filtering mechanism for my use case.
> When i use the existing filters like FieldCacheTermsFilter, TermsFilter i
> see that the first filtering take up enough time may be for building the
> FieldCache. Subsequent filters are fast enough.
> Currently, I am using CachingWrapperFilter over TermsFilter over String
> Fields.
>
> a) I want to reduce the FieldCache Building time or atleast first filters
> time.
>
> b) Instead can i build a filter over DocValues ?
>
>     I have tried few things:
>    1> I have SortedDocValueField like doc.add(new SortedDocValueField("ID",
> new BytesRef("123"))) and created a
>        TermsFilter based on BytesRef List for this field. But this doesn't
> work.
>    2> When i use the SortedDocValueField as group field for grouping it
> works.
>
>    Are there any ways out or did i miss somethings ?
>
> Arun
>

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