You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Peyman Faratin <pe...@robustlinks.com> on 2011/10/22 06:01:16 UTC

FieldCache

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

Re: FieldCache

Posted by Simon Willnauer <si...@googlemail.com>.
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 <pe...@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