lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@googlemail.com>
Subject Re: FieldCache
Date Sat, 22 Oct 2011 08:08:20 GMT
I think i'd try to use a bitset instead of a string for your
categories, is that possible? how many categories do you have roughly?

simon

On Sat, Oct 22, 2011 at 6:01 AM, Peyman Faratin <peyman@robustlinks.com> wrote:
> Hi
>
> I have a field that is indexed as follows
>
> for(String c: article.getCategories()){
>        doc.add(new Field("categories", c.toLowerCase(),
>        Field.Store.YES, Field.Index.ANALYZED));
> }
>
> I have a search space of 2 million docs and I need to access the category field of each
hitdoc. I would like to use FieldCache but since I am indexing the field as mutlifield this
is a problem.
>
> Is there a recommend solution to this problem?
>
> thank you
>
> Peyman

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


Mime
View raw message