Kabul*^2.0
-- Jack Krupansky
-Original Message-
From: Jonty Rhods
Sent: Thursday, May 03, 2012 3:43 PM
To: solr-user@lucene apache org
Subject: Sorting result first which come first in sentance
Hi all,
I need suggetion:
I
Hi all,
I need suggetion:
I have many title like:
1
: > 1 bomb blast in kabul
: >
: > 2 kabul bomb blast
: >
: > 3 3 people killed in serial bomb blast in kabul
...
: > I want 2nd result should come first while user search by "kabul".
: >
: > Because kabul is on 1st postion in that sentance. Similarly 1st result
: > should come on 2nd and
for this version, you may consider using payload for position boost.
you can save boost values in payload.
I have used it in lucene api where anchor text should weigh more than
normal text. but I haven't used it in solr.
some searched urls:
http://wiki.apache.org/solr/Payloads
http://digitalpebble.
I am using solr version 3.4
as for version below 4.0, it's not possible because lucene's score
model. position information is stored, but only used to support phrase
query. it just tell us whether a document is matched, but we can boost
a document. The similar problem is : how to implement proximity boost.
for 2 search terms,
> Hi all,
>
>
>
> I need suggetion:
>
>
>
> I
>
> Hi all,
>
>
>
> I need suggetion:
>
>
>
> I have many title like:
>
>
>
> 1 bomb blast in kabul
>
> 2 kabul bomb blast
>
> 3 3 people killed in serial bomb blast in kabul
>
>
>
> I want 2nd result should come first while user search by "kabul".
>
>