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 "rubi.hali" <ru...@gmail.com> on 2018/05/18 14:41:11 UTC
Caching Solr Grouping Results
Hi All
Can somebody please explain if we can cache solr grouping results in query
result cache as i dont see any inserts in query result cache once we enabled
grouping?
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Re: Caching Solr Grouping Results
Posted by Yasufumi Mizoguchi <ya...@gmail.com>.
Hi,
Have you already tried "group.cache.percent" parameter? It might improve
grouping performance.
Or if you try CollapsingQParser, you can use expand component to acquire
all values in groups, I think.
(
https://lucene.apache.org/solr/guide/6_6/collapse-and-expand-results.html#collapse-and-expand-results
)
thanks,
Yasufumi
2018年5月21日(月) 15:36 rubi.hali <ru...@gmail.com>:
> Hi Yasufumi
>
> Thanks for the reply. Yes, you are correct. I also checked the code and it
> seems the same.
>
> We are facing performance issues due to grouping so wanted to be sure that
> we are not leaving out any possibility of caching the same in Query Result
> Cache.
>
> was just exploring field collapsing instead of grouping but It doesn't
> fulfill our requirement of having all values in a facet for a group instead
> of only grouped value. So we dont have any other choice but to go with
> grouping and may be write some custom cache provider :(
>
>
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>
Re: Caching Solr Grouping Results
Posted by "rubi.hali" <ru...@gmail.com>.
Hi Yasufumi
Thanks for the reply. Yes, you are correct. I also checked the code and it
seems the same.
We are facing performance issues due to grouping so wanted to be sure that
we are not leaving out any possibility of caching the same in Query Result
Cache.
was just exploring field collapsing instead of grouping but It doesn't
fulfill our requirement of having all values in a facet for a group instead
of only grouped value. So we dont have any other choice but to go with
grouping and may be write some custom cache provider :(
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Re: Caching Solr Grouping Results
Posted by Yasufumi Mizoguchi <ya...@gmail.com>.
Hi,
I know few about groping component, but I think it is very hard. Because
query result cache has {query and conditions} -> {DocList} structure.
(
https://github.com/apache/lucene-solr/blob/e30264b31400a147507aabd121b1152020b8aa6d/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java#L120
)
But in caching grouping result, query result cache should have {query and
conditions} -> {grouped value, condition, etc...} -> {DocList} structure
cache, I think.
Thanks,
Yasufumi
2018年5月18日(金) 23:41 rubi.hali <ru...@gmail.com>:
> Hi All
>
> Can somebody please explain if we can cache solr grouping results in query
> result cache as i dont see any inserts in query result cache once we
> enabled
> grouping?
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>