Nice! It works indeed!
Sorry I didn't noticed that before.

But what if I want the same for the iPhone?
I mean suggesting "I phone" for users who searched "iphone". Minbreaklength
of 1 is just too small isn't it?

Il sabato 31 gennaio 2015, Dyer, James-2 [via Lucene] <
ml-node+s472066n4183176...@n3.nabble.com> ha scritto:

> You need to decrease this to at least 2 because the length of "go" is <3.
>
> <int name="minBreakLength">3</int>
>
> James Dyer
> Ingram Content Group
>
>
> -----Original Message-----
> From: fabio.bozzo [mailto:[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4183176&i=0>]
> Sent: Wednesday, January 28, 2015 4:55 PM
> To: [hidden email] <http:///user/SendEmail.jtp?type=node&node=4183176&i=1>
> Subject: RE: Suggesting broken words with solr.WordBreakSolrSpellChecker
>
> I tried increasing my alternativeTermCount to 5 and enable extended
> results.
> I also added a filter fq parameter to clarify what I mean:
>
> *Querying for "go pro" is good:*
>
> {
>   "responseHeader": {
>     "status": 0,
>     "QTime": 2,
>     "params": {
>       "q": "go pro",
>       "indent": "true",
>       "fq": "marchio:\"GO PRO\"",
>       "rows": "1",
>       "wt": "json",
>       "spellcheck.extendedResults": "true",
>       "_": "1422485581792"
>     }
>   },
>   "response": {
>     "numFound": 27,
>     "start": 0,
>     "docs": [
>       {
>         "codice_produttore_s": "DK00150020",
>         "codice_s": "5.BAT.27407",
>         "id": "27407",
>         "marchio": "GO PRO",
>         "barcode_interno_s": "185323000958",
>         "prezzo_acquisto_d": 16.12,
>         "data_aggiornamento_dt": "2012-06-21T00:00:00Z",
>         "descrizione": "BATTERIA GO PRO HERO ",
>         "prezzo_vendita_d": 39.9,
>         "categoria": "Batterie",
>         "_version_": 1491583424191791000
>       },
>
>      ............
>
>     ]
>   },
>   "spellcheck": {
>     "suggestions": [
>       "go pro",
>       {
>         "numFound": 1,
>         "startOffset": 0,
>         "endOffset": 6,
>         "origFreq": 433,
>         "suggestion": [
>           {
>             "word": "gopro",
>             "freq": 2
>           }
>         ]
>       },
>       "correctlySpelled",
>       false,
>       "collation",
>       [
>         "collationQuery",
>         "gopro",
>         "hits",
>         3,
>         "misspellingsAndCorrections",
>         [
>           "go pro",
>           "gopro"
>         ]
>       ]
>     ]
>   }
> }
>
> While querying for "gopro" is not:
>
> {
>   "responseHeader": {
>     "status": 0,
>     "QTime": 6,
>     "params": {
>       "q": "gopro",
>       "indent": "true",
>       "fq": "marchio:\"GO PRO\"",
>       "rows": "1",
>       "wt": "json",
>       "spellcheck.extendedResults": "true",
>       "_": "1422485629480"
>     }
>   },
>   "response": {
>     "numFound": 3,
>     "start": 0,
>     "docs": [
>       {
>         "codice_produttore_s": "DK0030010",
>         "codice_s": "5.VID.39163",
>         "id": "38814",
>         "marchio": "GO PRO",
>         "barcode_interno_s": "818279012477",
>         "prezzo_acquisto_d": 150.84,
>         "data_aggiornamento_dt": "2014-12-24T00:00:00Z",
>         "descrizione": "VIDEOCAMERA GO-PRO HERO 3 WHITE NUOVO SLIM",
>         "prezzo_vendita_d": 219,
>         "categoria": "Fotografia",
>         "_version_": 1491583425479442400
>       },
> ............
>     ]
>   },
>   "spellcheck": {
>     "suggestions": [
>       "gopro",
>       {
>         "numFound": 1,
>         "startOffset": 0,
>         "endOffset": 5,
>         "origFreq": 2,
>         "suggestion": [
>           {
>             "word": "giro",
>             "freq": 6
>           }
>         ]
>       },
>       "correctlySpelled",
>       false
>     ]
>   }
> }
>
> ---
>
> I'd like "go pro" as a suggestion for "gopro" too.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Suggesting-broken-words-with-solr-WordBreakSolrSpellChecker-tp4182172p4182735.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lucene.472066.n3.nabble.com/Suggesting-broken-words-with-solr-WordBreakSolrSpellChecker-tp4182172p4183176.html
>  To unsubscribe from Suggesting broken words with
> solr.WordBreakSolrSpellChecker, click here
> <http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4182172&code=Zi5ib3p6b0AzLXcuaXR8NDE4MjE3MnwxODkyODA0NDQy>
> .
> NAML
> <http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


-- 
Fabio Bozzo
SW Engineer

3W s.r.l.
Via Luisetti,7
13900-Biella ( BI )
Tel. 015.84.97.804 / 015.89.76.350
Fax 015.84.70.450

Registro imprese Biella n.01965270026
R.E.A. BI 175416

 Questo messaggio di posta elettronica contiene informazioni di carattere
confidenziale rivolte esclusivamente al destinatario sopra indicato.
E' vietato l'uso, la diffusione, distribuzione o riproduzione da parte di
ogni altra persona.
Nel caso aveste ricevuto questo messaggio di posta elettronica per errore,
siete pregati di segnalarlo immediatamente al mittente e distruggere quanto
ricevuto (compresi i file allegati) senza farne copia.
Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio
costituisce violazione dell'obbligo di non prendere cognizione della
corrispondenza tra altri soggetti, salvo piĆ¹ grave illecito, ed espone il
responsabile alle relative conseguenze.

This e-mail transmission may contain legally privileged and/or confidential
information.
Please do not read it if you are not the intended recipient(s). Any use,
distribution, reproduction or disclosure by any other person is strictly
prohibited. If you have received this e-mail in error, please notify.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggesting-broken-words-with-solr-WordBreakSolrSpellChecker-tp4182172p4183178.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to