Re: multi word search for elevator (QueryElevationComponent) not working
Hi Remi , Thanks for your reply. I tried with with setting the query_text for apple ipod and added the required doc_id to elevate. I got the result but again I am not able to get the desired result for NLP queries such as ipod nano generation 5 or apple ipod best music . As in both the queries it contains ipod for which I want my desired doc id's to be elevated. I also tried changing in the QueryElevationComponent as: First with this: str name=queryFieldTypestring/str Second time: str name=queryFieldTypetext_general/str But no success. Please correct me if I am doing the correct change as you mentioned. Is there any other way round in solr to achieve this.(Promoted Search). Please guide me. Regads, Niranjan -- View this message in context: http://lucene.472066.n3.nabble.com/multi-word-search-for-elevator-QueryElevationComponent-not-working-tp4131016p4131971.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: multi word search for elevator (QueryElevationComponent) not working
Hi Niranjan, you should setup it up so the query matches the elevation criteria, for example elevating ipod and apple ipod as well or changing the str name=queryFieldTypestring/str accordingly Remi On Mon, Apr 14, 2014 at 9:19 PM, Niranjan niranjan.kum...@wipro.com wrote: Hi All, I have implemented a sponsor search where I have to elevate a particular document for a specific query text. To achieve this I have made the following changes (solr version:4.7.1): 1) Changes in solrConfig.xml searchComponent name=elevator class=solr.QueryElevationComponent str name=queryFieldTypestring/str str name=config-fileelevate.xml/str /searchComponent requestHandler name=/elevate class=solr.SearchHandler startup=lazy lst name=defaults str name=echoParamsexplicit/str /lst arr name=last-components strelevator/str /arr /requestHandler 2)added the required doc id in elevate.xml query text=ipod doc id=USD / doc id=sponsor12 / doc id=MA147LL/A / doc id=IW-02 exclude=true / /query I am able to fetch the proper elevated result for query text ipod but the problem is that when I am trying to search for apple ipod (multi word) the documents are not getting elevated,although my query contains the term ipod. What is the proper way to configure the ElevationComponent so that it works for both singleword query as ipod as well as multi word query apple ipod? Thanks in advance!!! Niranjan -- View this message in context: http://lucene.472066.n3.nabble.com/multi-word-search-for-elevator-QueryElevationComponent-not-working-tp4131016.html Sent from the Solr - User mailing list archive at Nabble.com.
multi word search for elevator (QueryElevationComponent) not working
Hi All, I have implemented a sponsor search where I have to elevate a particular document for a specific query text. To achieve this I have made the following changes (solr version:4.7.1): 1) Changes in solrConfig.xml searchComponent name=elevator class=solr.QueryElevationComponent str name=queryFieldTypestring/str str name=config-fileelevate.xml/str /searchComponent requestHandler name=/elevate class=solr.SearchHandler startup=lazy lst name=defaults str name=echoParamsexplicit/str /lst arr name=last-components strelevator/str /arr /requestHandler 2)added the required doc id in elevate.xml query text=ipod doc id=USD / doc id=sponsor12 / doc id=MA147LL/A / doc id=IW-02 exclude=true / /query I am able to fetch the proper elevated result for query text ipod but the problem is that when I am trying to search for apple ipod (multi word) the documents are not getting elevated,although my query contains the term ipod. What is the proper way to configure the ElevationComponent so that it works for both singleword query as ipod as well as multi word query apple ipod? Thanks in advance!!! Niranjan -- View this message in context: http://lucene.472066.n3.nabble.com/multi-word-search-for-elevator-QueryElevationComponent-not-working-tp4131016.html Sent from the Solr - User mailing list archive at Nabble.com.