Yep, Query Elevation is a pretty blunt instrument. You should
be able to get the configuration file to re-load by issuing a reload
command rather than re-starting.

But your problem of having a bunch of different queries
return the same top doc is, indeed, the problem. You need
a complete list of query terms and each one needs an entry.

The only real alternative is to be able to somehow encode the
_reason_ these docs need to be returned first, which you
haven't articulated. If it's an arbitrary reason (i.e. "sponsored
search" or some such) it's pretty hard because there's no
rule to turn into an algorithm.

Best,
Erick


On Thu, Jul 24, 2014 at 4:30 AM, rahulmodi <rahul.m...@ge.com> wrote:

> Thanks a lot Erick,
>
> i have looked at Query Elevation Component, it works but the problem is if
> i
> need to add new <query> tag or update existing <query> tag in elevate.xml
> file then i need to restart the server in order to take effect.
>
> I have also used "forceElevation=true" even then it requires restarting
> server.
>
> Is there any way by which we can achieve this without restarting server.
>
> Also, there is another issue is that it works only when we use exact query,
> example is below:
> elevate.xml file has entry like:-
>
> <query text="energy">
>   <doc id="http://welcome.energy.com/"; />
> </query>
>
> if i use "energy" as query then i get correct url as
> "http://welcome.energy.com/";
> But if i use "power energy" as query then i get another url but here also i
> want the url "http://welcome.energy.com/"; to be displayed.
>
> Please suggest how to achieve this.
> Thanks in advance.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/how-to-achieve-static-boost-in-solr-tp4148788p4148999.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to