You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Andreas Niekler <an...@informatik.uni-leipzig.de> on 2012/12/04 09:45:25 UTC

Facet with large number of unigram entries

Dear List,

i have an index with 2.000.000 articles. All those texts get tokenized 
while indexing. On this data i run a faceted query like this (to receive 
associated words):

select?q=a_spell:{some 
word}&facet.method=enum&facet=true&facet.field=Paragraph&facet.limit=10&facet.prefix={some 
prefix}&facet.mincount=1500&indent=1&fl=_id&wt=json&rows=0'


I have more than 5.000.000 unique token in the index and the facet query 
is quite slow. I also tried differnt FastLRUcache  Settings in the 
FilterCache.

Has Anybody a hint how i could improve performance within this setup?

Thnak you all

-- 
Andreas Niekler, Dipl. Ing. (FH)
NLP Group | Department of Computer Science
University of Leipzig
Johannisgasse 26 | 04103 Leipzig

mail: aniekler@informatik.uni-leipzig.deg.de

Re: Facet with large number of unigram entries

Posted by Erick Erickson <er...@gmail.com>.
This is really not the use-case faceting is designed for, I don't think
there's really any good way to speed this case up. What is the higher-level
issue you're trying to solve? Perhaps there's a better way to do it.

I'm not sure why you think altering the cache settings would help, they're
really pretty irrelevant to the faceting....

Best
Erick


On Tue, Dec 4, 2012 at 12:45 AM, Andreas Niekler <
aniekler@informatik.uni-leipzig.de> wrote:

> Dear List,
>
> i have an index with 2.000.000 articles. All those texts get tokenized
> while indexing. On this data i run a faceted query like this (to receive
> associated words):
>
> select?q=a_spell:{some word}&facet.method=enum&facet=**
> true&facet.field=Paragraph&**facet.limit=10&facet.prefix={**some
> prefix}&facet.mincount=1500&**indent=1&fl=_id&wt=json&rows=**0'
>
>
> I have more than 5.000.000 unique token in the index and the facet query
> is quite slow. I also tried differnt FastLRUcache  Settings in the
> FilterCache.
>
> Has Anybody a hint how i could improve performance within this setup?
>
> Thnak you all
>
> --
> Andreas Niekler, Dipl. Ing. (FH)
> NLP Group | Department of Computer Science
> University of Leipzig
> Johannisgasse 26 | 04103 Leipzig
>
> mail: aniekler@informatik.uni-**leipzig.deg.de<an...@informatik.uni-leipzig.deg.de>
>