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 <pey...@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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to