Bonjour et merci pour votre réponse,

(désolé pour mon anglais, j'utilise un traducteur)

j'ai essayé d'utiliser le fichier elevate.xml en y ajoutant :
 <query text="ipad">
   <doc id="271" />
 </query>

où 271 est l'identifiant unique du marchand Apple.

Afin d'essayer de le faire prendre en compte je passe les paramètres
suivants :
&forceElevation=true&enableElevation=true

et j'ai rajouté :
<str>elevator</str>

dans solrconfigxml dans la section :
<requestHandler name="/select" class="solr.SearchHandler" startup="lazy">


Merci d'avance.


*Antoine Reboul*
Responsable Comparateurs / Plateforme emailing
Plebicom -  eBuyClub - Cashstore - Checkdeal

PLEBICOM – 29 avenue Joannes Masset – 69009 Lyon
Tel  : 04 72 85 81 49
Fax : 04 78 83 39 74

2015-01-20 17:49 GMT+01:00 Aurélien MAZOYER <[email protected]
>:

> Hi,
>
> I am afraid you don't use the right component.
> In your example, you will match "apple", "darty "and "boulanger"
> documents, sorted by the  default Solr scoring mechanism (TF-IDF) that
> won't take the order you specified in your synonyms.txt file into account
> for the scoring.
> If you want to override the solr scoring mecanism for a query, you can
> have a look to the solr elevate component:
> https://cwiki.apache.org/confluence/display/solr/The+
> Query+Elevation+Component
>
>
>
> Regards,
>
> Aurélien
>
>
>
>
> On 20/01/2015 17:28, Antoine REBOUL wrote:
>
>> Hello,
>>
>> (sorry for my English , I use a translator)
>>
>> I used synonyms in solr .
>>
>> My question is the following:
>> How to order the results list according to the order of synonyms ?
>>
>> My synonyms are written as follows in mysynonyms.txt file :
>>
>> ipad = > apple , Darty , Boulanger
>>
>> I want that when you search for " ipad " the results appear in the
>> following order:
>>
>> 1 / Apple
>> 2 / Darty
>> 3 / Boulanger
>>
>> Unless Apple is not returned first.
>>
>> Do you have an idea to offer me ?
>>
>>
>> Thank you in advance.
>>
>>
>> Merci d'avance.
>> Antoine Reboul
>> Responsable Comparateurs / Plateforme emailing
>> Plebicom -  eBuyClub - Cashstore - Checkdeal
>>
>> PLEBICOM – 29 avenue Joannes Masset – 69009 Lyon
>> Tel  : 04 72 85 81 49
>> Fax : 04 78 83 39 74
>>
>>
> --
> Aurélien MAZOYER
> Expert en technologies de recherche
> France Labs
> CEEI Nice Premium
> 1 boulevard Maître Maurice Slama
> 06200 Nice
> Tel : +33 (0) 683366620
> www.francelabs.com
>
>

Reply via email to