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 Erwin Etchart <er...@gmail.com> on 2014/01/08 19:32:13 UTC

How to change Field weigth via api or another way

Hi people,

Anybody knows if is possible to change the weightage of a field in a
dynamic way instead of xml usage?

Best regards

Erwin

Re: How to change Field weigth via api or another way

Posted by Otis Gospodnetic <ot...@gmail.com>.
Hi Erwin,

Sure, you can pass in qf=..... with fields and weights via the URL on every
call.

Otis
--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/


On Wed, Jan 8, 2014 at 1:32 PM, Erwin Etchart <er...@gmail.com>wrote:

> Hi people,
>
> Anybody knows if is possible to change the weightage of a field in a
> dynamic way instead of xml usage?
>
> Best regards
>
> Erwin
>

Re: How to change Field weigth via api or another way

Posted by Erwin Etchart <er...@gmail.com>.
Thanks for all the responses, normally i have to set the field weight
directly in xml creating a type of relevance.
What i was wondering if is possible to change what you normally do on xml
via api o command.
I think that the solution provided q=superman&qf=title^2 subject can work
for me.

Thanks again.


2014/1/8 Aruna Kumar Pamulapati <ap...@gmail.com>

> In the link I sent before , you will see specific example as Otis replied :
> q=superman&qf=title^2 subject
>
>
> On Wed, Jan 8, 2014 at 1:56 PM, Aruna Kumar Pamulapati <
> apamulapati@gmail.com> wrote:
>
> > Hi Erwin,
> >
> > Are you talking about query time boosting?
> > This explains the boosting :
> > http://wiki.apache.org/solr/SolrRelevancyFAQ
> >
> > Thanks,
> > Arun
> >
> >
> > On Wed, Jan 8, 2014 at 1:32 PM, Erwin Etchart <erwin.etchart@gmail.com
> >wrote:
> >
> >> Hi people,
> >>
> >> Anybody knows if is possible to change the weightage of a field in a
> >> dynamic way instead of xml usage?
> >>
> >> Best regards
> >>
> >> Erwin
> >>
> >
> >
>

Re: How to change Field weigth via api or another way

Posted by Aruna Kumar Pamulapati <ap...@gmail.com>.
In the link I sent before , you will see specific example as Otis replied :
q=superman&qf=title^2 subject


On Wed, Jan 8, 2014 at 1:56 PM, Aruna Kumar Pamulapati <
apamulapati@gmail.com> wrote:

> Hi Erwin,
>
> Are you talking about query time boosting?
> This explains the boosting :
> http://wiki.apache.org/solr/SolrRelevancyFAQ
>
> Thanks,
> Arun
>
>
> On Wed, Jan 8, 2014 at 1:32 PM, Erwin Etchart <er...@gmail.com>wrote:
>
>> Hi people,
>>
>> Anybody knows if is possible to change the weightage of a field in a
>> dynamic way instead of xml usage?
>>
>> Best regards
>>
>> Erwin
>>
>
>

Re: How to change Field weigth via api or another way

Posted by Aruna Kumar Pamulapati <ap...@gmail.com>.
Hi Erwin,

Are you talking about query time boosting?
This explains the boosting :
http://wiki.apache.org/solr/SolrRelevancyFAQ

Thanks,
Arun


On Wed, Jan 8, 2014 at 1:32 PM, Erwin Etchart <er...@gmail.com>wrote:

> Hi people,
>
> Anybody knows if is possible to change the weightage of a field in a
> dynamic way instead of xml usage?
>
> Best regards
>
> Erwin
>