Hi,

One trick is to index a special token at the beginning of the content and do a 
phrase query for your terms and the special token with little or no slop. You 
can also use Lucene's SpanFirstQuery but it's not yet exposed in Solr. There's 
a patch for trunk exposing the SpanFirstQuery in Solr's Edismax query parser.

It cannot do progressively smaller boosts to words further from the start by 
itself.

https://issues.apache.org/jira/browse/SOLR-3925

Cheers,
Markus

 
-----Original message-----
> From:YooKyuseok <kyuseok....@samsung.com>
> Sent: Fri 26-Oct-2012 14:39
> To: solr-user@lucene.apache.org
> Subject: how solr to boost term value at the start of ther field?
> 
> i am kyuseok in Republic of Korea. 
> nice to meet you. 
> 
> i am searching about 'solr boost term postion' and struggling with this
> isusse. 
> and i still didn`t solve it.
> 
> i am serving video contents search server. 
> and my client require the contents which match the value at the start of
> field shoud be displayed first. 
> 
> so i want to rank like below
> 
> *search word : indiana
> *result docs.
> 1. indiana Jones 
> 2. Jones indiana 
> 3. Jones and the others in indiana 
> (because of 'indiana' `s position order)
> 
> can  anyone help me solve this problem. ? 
> i am using solr search engine. 
> 
> please help me, sir.
> 
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/how-solr-to-boost-term-value-at-the-start-of-ther-field-tp4015965.html
> Sent from the Solr - User mailing list archive at Nabble.com.
> 

Reply via email to