Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Solr, mail # user - word proximity and queryoperator OR


Copy link to this message
-
Re: word proximity and queryoperator OR
Markus Jelsma 2011-08-31, 22:39
Debug output of a few would help. There can be other factors that produce more
weight than pf/ps. Most of the time it's tf and norms that play a big part.
> hi
>
> I have some issues with search result relevancy.
>
> default query operator is OR
> i search for iphone 4. I m not sure how would i get iphone 4 results to
> show first.
>
> I tried
> ?q=iphone+4&start=0&wt=json&indent=on&fl=displayName,score&qt=dismax&fq=pro
> ductType:Device&debug=true&pf=displayName&ps=3
>
> proximity  pf and ps but still no use.
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":62,
>     "params":{
>       "fl":"displayName,score",
>       "wt":"json",
>       "ps":"3",
>       "fq":"productType:Device",
>       "rows":"10",
>       "indent":"on",
>       "pf":"displayName",
>       "qt":"dismax",
>       "debug":"true",
>       "start":"0",
>       "q":"iphone 4"}},
>   "response":{"numFound":25,"start":0,"maxScore":1.1627537,"docs":[
>       {
>         "displayName":"Apple iPhone 3GS - 32 GB - Black",
>         "score":1.1627537},
>       {
>         "displayName":"Apple iPhone 3GS - 8 GB - Black",
>         "score":1.1627537},
>       {
>         "displayName":"Apple iPhone 4 - 16 GB - White",
>         "score":1.1627537},
>       {
>         "displayName":"Apple iPhone 4 - 16 GB - Black",
>         "score":1.1627537},
>       {
>         "displayName":"Apple iPhone 4 - 32 GB - White",
>         "score":1.1627537},
>       {
>         "displayName":"Apple iPhone 4 - 32 GB - Black",
>         "score":1.1627537},
>       {
>         "displayName":"Apple iPhone 3GS - 8 GB - Black (Refurb)",
>         "score":1.1627537},
>       {
>         "displayName":"Apple iPhone 3GS (Refurb Cosmetic Blemish) - 8GB",
>         "score":1.1627537},
>       {
>         "displayName":"Apple iPhone 4 - 32 GB - Black (Refurb)",
>         "score":1.1627537},
>       {
>         "displayName":"Apple iPhone 4 (Refurb Cosmetic Blemish) - 16GB -
> Black",
>         "score":1.1301228}]
>   },
>
> I can add debug output if required.
>
> Any help?
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/word-proximity-and-queryoperator-OR-tp3
> 299729p3299729.html Sent from the Solr - User mailing list archive at
> Nabble.com.