lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andy <yhl...@sohu.com>
Subject Re: how to boost given word in a field in the query parameters
Date Wed, 29 Aug 2012 11:19:34 GMT
Hi iorixxx,

Thanks for your reply, if I insert the clause category:206^100 , the search
result will only include the results in category 206
?

 
iorixxx wrote
> 
>> category field has certain values ,for
>> examples:307,503,206..
>> 
>> my query like
>> this:q=cell+phone&version=2.2&start=0&rows=10&indent=on
>> the search result will be in many categories ,for example
>> may be in
>> 206,782,307,289
>> you know the the default sort which depends on the
>> relevance, *I want  the
>> result which in category 206 is in front of others*
> 
> One way to do this is : add a clause into your query.
> 
> q=cell phone category:206^100
> 



--
View this message in context: http://lucene.472066.n3.nabble.com/how-to-boost-given-word-in-a-field-in-the-query-parameters-tp4003961p4003981.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message