Recherche avec et sans espaces
Bonjour, je souhaite faire en sorte que les recherches dans un champs de type texte renvoient des résultats même si les espaces sont mal saisies (par exemple : "la redoute"="laredoute"). Aujourd'hui mon champ texte est défini de la façon suivante : Merci d'avance pour vos éventuelles réponses. Cordialement. Antoine Reboul *
Priority in search an synonyms
hello, I have a question , I do not know if there is a solution ... I will index and search a field named " Libel " . I use a " synomims " file. I have for example the following line in my file synonyms " ipad = > Apple, Priceminister , Amazon" Research on iPad gives me much Apple, and Amazon Priceminister ( expected result) But when I am searching "Apple", i want that the merchant Apple is returned first. This is not the case , in fact, it is Amazon who gets the first place. Sorry for my poor English , I'm using a translator. Best Regards. *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
Re: Priority in search an synonyms
Hello, First of all thank you for your answers ! In my schema.xml file: - I created this field : - the type of this field is a "copyfiled" : I wonder if the following statement is required : ebc_libelle I test my results with the following settings : http://IP:8983/solr/select/?qf=tmp_libelle ^75%20ebc_libelle^5&pf=ebc_libelle&q=Castorama&start=0&rows=100&indent=on&defType=edismax&sort=score%20asc The problem I have now is that ebc_libelle synonyms reported for the field are not show The field ebc_libelle is analyzed/indexed as follows : Best Regards. *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 2014-12-10 16:40 GMT+01:00 Alexandre Rafalovitch : > This might be written just for you: > > http://opensourceconnections.com/blog/2014/12/08/title-search-when-relevancy-is-only-skin-deep/ > > Merchant would be same as title = short text > > Regards, >Alex. > Personal: http://www.outerthoughts.com/ and @arafalov > Solr resources and newsletter: http://www.solr-start.com/ and @solrstart > Solr popularizers community: https://www.linkedin.com/groups?gid=6713853 > > > On 10 December 2014 at 10:00, Antoine REBOUL > wrote: > > hello, > > > > I have a question , I do not know if there is a solution ... > > > > I will index and search a field named " Libel " . > > I use a " synomims " file. > > > > I have for example the following line in my file synonyms " ipad = > > Apple, > > Priceminister , Amazon" > > > > Research on iPad gives me much Apple, and Amazon Priceminister ( expected > > result) > > But when I am searching "Apple", i want that the merchant Apple is > returned > > first. > > This is not the case , in fact, it is Amazon who gets the first place. > > > > Sorry for my poor English , I'm using a translator. > > > > Best Regards. > > > > *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 >
Order synonyms
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
Re: Order synonyms
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 : 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é : elevator dans solrconfigxml dans la section : 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 : > 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 > >