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 eShard <zi...@yahoo.com> on 2013/02/07 19:02:19 UTC
Can you call the elevation component in another requesthandler?
Good day,
I got my elevation component working with the /elevate handler.
However, I would like to add the elevation component to my main search
handler which is currently /query.
so I can have one handler return everything (elevated items with "regular"
search results; i.e. one stop shopping, so to speak)
This is what I tried:
<requestHandler name="/query" class="solr.SearchHandler">
<lst name="defaults">
<str name="echoParams">explicit</str>
<str name="wt">xml</str>
<str name="indent">true</str>
<str name="df">text</str>
</lst>
<arr name="last-components">
<str>elevator</str>
<str>manifoldCFSecurity</str>
</arr>
</requestHandler>
I also tried it in first components as well.
Is there any way to combine these? Otherwise the UI will have to make
separate ajax calls and we're trying to minimize that.
Thanks,
--
View this message in context: http://lucene.472066.n3.nabble.com/Can-you-call-the-elevation-component-in-another-requesthandler-tp4039054.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Can you call the elevation component in another requesthandler?
Posted by eShard <zi...@yahoo.com>.
Update:
Ok, If I search for gangnam style in /query handler by itself, elevation
works!
If I search with gangnam style and/or something else the elevation component
doesn't work but the rest of the query does.
here's the examples:
works:
/query?q=gangnam+style&fl=*,[elevated]&wt=xml&start=0&rows=50&debugQuery=true&dismax=true
elevation fails:
/query?q=gangnam+style+OR+title%3A*White*&fl=*,[elevated]&wt=xml&start=0&rows=50&debugQuery=true&dismax=true
So I guess I have to do separate queries at this point.
Is there a way to combine these 2 request handlers?
Thanks,
--
View this message in context: http://lucene.472066.n3.nabble.com/Can-you-call-the-elevation-component-in-another-requesthandler-tp4039054p4039076.html
Sent from the Solr - User mailing list archive at Nabble.com.