lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norberto Meijome <numard...@gmail.com>
Subject Re: Dismax , "query phrases"
Date Wed, 24 Sep 2008 15:53:02 GMT
On Wed, 24 Sep 2008 08:34:57 -0700 (PDT)
Otis Gospodnetic <otis_gospodnetic@yahoo.com> wrote:

> What happens if you change ps from 100 to 1 and comment out that ord function?
> 
> 
> Otis

Hi Otis,

no luck - without " " :
<str name="rawquerystring">smashing pumpkins</str>
<str name="querystring">smashing pumpkins</str>
<str name="parsedquery">
+((DisjunctionMaxQuery((genre:smash^0.2 | title_ngram2:"sm ma as sh hi in ng"^0.1 | artist_ngram2:"sm
ma as sh hi in ng"^0.1 | title_ngram3:"sma mas ash shi hin ing"^4.5 | title:smash^6.0 | artist_ngram3:"sma
mas ash shi hin ing"^3.5 | artist:smash^4.0 | artist_exact:smashing^100.0 | title_exact:smashing^200.0)~0.01)
DisjunctionMaxQuery((genre:pumpkin^0.2 | title_ngram2:"pu um mp pk ki in ns"^0.1 | artist_ngram2:"pu
um mp pk ki in ns"^0.1 | title_ngram3:"pum ump mpk pki kin ins"^4.5 | title:pumpkin^6.0 |
artist_ngram3:"pum ump mpk pki kin ins"^3.5 | artist:pumpkin^4.0 | artist_exact:pumpkins^100.0
| title_exact:pumpkins^200.0)~0.01))~2) DisjunctionMaxQuery((title:"smash pumpkin"~1^2.0 |
artist:"smash pumpkin"~1^0.8)~0.01)
</str>
___
<str name="parsedquery_toString">
+(((genre:smash^0.2 | title_ngram2:"sm ma as sh hi in ng"^0.1 | artist_ngram2:"sm ma as sh
hi in ng"^0.1 | title_ngram3:"sma mas ash shi hin ing"^4.5 | title:smash^6.0 | artist_ngram3:"sma
mas ash shi hin ing"^3.5 | artist:smash^4.0 | artist_exact:smashing^100.0 | title_exact:smashing^200.0)~0.01
(genre:pumpkin^0.2 | title_ngram2:"pu um mp pk ki in ns"^0.1 | artist_ngram2:"pu um mp pk
ki in ns"^0.1 | title_ngram3:"pum ump mpk pki kin ins"^4.5 | title:pumpkin^6.0 | artist_ngram3:"pum
ump mpk pki kin ins"^3.5 | artist:pumpkin^4.0 | artist_exact:pumpkins^100.0 | title_exact:pumpkins^200.0)~0.01)~2)
(title:"smash pumpkin"~1^2.0 | artist:"smash pumpkin"~1^0.8)~0.01

Still OK if I include " "...

I am trying on another setup, with same data, to work with shingles rather than on 'exact'
... dismax seems to handle it much better...but it may be that I haven't added to that config
all the ngram3 &ngram3 fields for substring matching...

the resulting params were :

<str name="mm">2<-1 5<-2 6<90%</str>
<str name="spellcheck">true</str>
<str name="spellcheck.extendedResults">true</str>
<str name="tie">0.01</str>
<str name="tr">store_albums.xsl</str>
___
<str name="qf">
title_exact^200.0 artist_exact^100.0 title^6.0 title_ngram3^4.5 artist^4.0 artist_ngram3^3.5
title_ngram2^0.1 artist_ngram2^0.1 genre^0.2
</str>
<str name="q.alt">*:*</str>
<str name="spellcheck.collate">true</str>
<str name="wt">xml</str>
<str name="defType">dismax</str>
<str name="rows">10</str>
<str name="spellcheck.onlyMorePopular">true</str>
<str name="pf">title^2.0 artist^0.8</str>
<str name="echoParams">all</str>
<str name="fl">*,score</str>
<str name="spellcheck.count">1</str>
<str name="ps">1</str>
<str name="debugQuery">true</str>
<str name="echoParams">all</str>
<str name="wt">xml</str>
<str name="q">smashing pumpkins</str>

thanks,
B
_________________________
{Beto|Norberto|Numard} Meijome

"Don't remember what you can infer."
   Harry Tennant

I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers
makes you go blind. Writing them is worse. You have been Warned.

Mime
View raw message