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 SOLR4189 <Kl...@yandex.ru> on 2017/02/01 05:57:56 UTC

Re: Upgrade SOLR version - facets perfomance regression

Tom, I already tried this syntax (and many another different syntax). It
still doesn't work. Are you sure that no need to change facet name in
request handler to something else?



--
View this message in context: http://lucene.472066.n3.nabble.com/Upgrade-SOLR-version-facets-perfomance-regression-tp4315027p4318174.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Upgrade SOLR version - facets perfomance regression

Posted by SOLR4189 <Kl...@yandex.ru>.
I finished to write FacetConverter, but I have a question: 
How do I config facet.threads parameter in Json Facet Api? 
  

I didn't find right syntax in the Confluence page.



--
View this message in context: http://lucene.472066.n3.nabble.com/Upgrade-SOLR-version-facets-perfomance-regression-tp4315027p4320104.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Upgrade SOLR version - facets perfomance regression

Posted by SOLR4189 <Kl...@yandex.ru>.
I finished to write FacetConverter, but I have some questions:
  1) How do I config facet.threads parameter in Json Facet Api?
  2) How do I add facet.pivot to query? For example, I need 
                              *q=*:*&facet=true&facet.pivot=A,B*
and I tried to write something like this: 
                 *q=*:*&json.facet={ A_B : {type:terms, field:A,
facet:{type:terms, field:B} } }*
but I get error: wrong aggr_B field.

I didn't find right syntax in the Confluence page. 



--
View this message in context: http://lucene.472066.n3.nabble.com/Upgrade-SOLR-version-facets-perfomance-regression-tp4315027p4320103.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Upgrade SOLR version - facets perfomance regression

Posted by "alessandro.benedetti" <ab...@apache.org>.
What I meant is that :
"Components
If you define components, the default components (see above) will not be
executed, and first-components and last-components are disallowed:"

Anyway it is documented in the Confluence page.
If you don't override the default components, json facets will be there.

Related the converter, i don't think there's anything out there.
You will need to define the json facets as json.

Cheers



--
View this message in context: http://lucene.472066.n3.nabble.com/Upgrade-SOLR-version-facets-perfomance-regression-tp4315027p4318252.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Upgrade SOLR version - facets perfomance regression

Posted by SOLR4189 <Kl...@yandex.ru>.
And still I have a question:
Is there some convertor from the legacy api to the new API?
Or a search component that converts from legacy api to json facet api?

I explained why I need it in my first post.

Thank you



--
View this message in context: http://lucene.472066.n3.nabble.com/Upgrade-SOLR-version-facets-perfomance-regression-tp4315027p4318241.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Upgrade SOLR version - facets perfomance regression

Posted by SOLR4189 <Kl...@yandex.ru>.
Alessandro, it helped! Thank you.
But I asked which changes do we do in configuration and I think these things
must be documented in the reference guide.
About your question, first of all I don't override default componets. Second
of all, I add my own components and for many reasons (For example, I checked
permissions before each query with my own component).




--
View this message in context: http://lucene.472066.n3.nabble.com/Upgrade-SOLR-version-facets-perfomance-regression-tp4315027p4318240.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Upgrade SOLR version - facets perfomance regression

Posted by "alessandro.benedetti" <ab...@apache.org>.
The reason must to be found in the default list of components :

protected List<String> getDefaultComponents()
  {
    ArrayList<String> names = new ArrayList<>(8);
    names.add( QueryComponent.COMPONENT_NAME );
    names.add( FacetComponent.COMPONENT_NAME );
    *names.add( FacetModule.COMPONENT_NAME );*
    names.add( MoreLikeThisComponent.COMPONENT_NAME );
    ...
    return names;
  }

Based on the Solr doc[1] you were overriding the list of components,
forgetting the component required for Json faceting (facet module).
To have Json facets you don't need only the facet component but also the
facet module.

Furthermore what is your reason to override the default search components
involved in your request handler ?

Cheers

[1]
https://cwiki.apache.org/confluence/display/solr/RequestHandlers+and+SearchComponents+in+SolrConfig



--
View this message in context: http://lucene.472066.n3.nabble.com/Upgrade-SOLR-version-facets-perfomance-regression-tp4315027p4318189.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Upgrade SOLR version - facets perfomance regression

Posted by SOLR4189 <Kl...@yandex.ru>.
I noticed if I don't write list of components in request handler it works
fine, but if I add something like
<arr name="components">
  <str>query</str>
  <str>facet</str>
</arr> 
Facets don't work...
How can you explian it?



--
View this message in context: http://lucene.472066.n3.nabble.com/Upgrade-SOLR-version-facets-perfomance-regression-tp4315027p4318187.html
Sent from the Solr - User mailing list archive at Nabble.com.