lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Zhang <macromars...@gmail.com>
Subject Re: Strange problem when use dismax handler
Date Wed, 30 Jun 2010 08:15:49 GMT
I use debugQuery to check my query url:
I notice the query url is parsed incorrectly.

The "type:book" was parsed as query string too. Sign~~~

+((+DisjunctionMaxQuery((keyword_level1:design^10.0 |
keyword_level2:design)~0.01) DisjunctionMaxQuery((keyword_level1:type^10.0 |
keyword_level2:type)~0.01) DisjunctionMaxQuery((keyword_level1:product^10.0
| keyword_level2:product)~0.01)
DisjunctionMaxQuery((keyword_level1:type^10.0 | keyword_level2:type)~0.01)
DisjunctionMaxQuery((keyword_level1:book^10.0 |
keyword_level2:book)~0.01))~3) ()


Then the question is how to specify the query filed , as in my case, type =
"book" besides use the "design" to search over 2 fields ?

Thanks

On Wed, Jun 30, 2010 at 4:08 PM, Scott Zhang <macromarship@gmail.com> wrote:

> Hi. All.
>    I am using default dismax to search within solr.
> The problem is when I search I want to specify the "type" to restrict the
> result.
> Here is what I do:
> 1. Query String with one type (Works!)
> ((((:"design")) AND ((type:"product") )))
> 2. Query String with 2 types (Works!)
> ((((:"design")) AND ((type:"product") OR (type:"member"))))
> 3. Query String with 3 types (Works!)
> ((((:"design")) AND ((type:"product") OR (type:"member") OR (type:"forum")
> )))
> 4. Query string with more than 3 types (doesn't work!)
> ((((:"design")) AND ((type:"product") OR (type:"member") OR (type:"forum")
> OR (type:"stamp") OR (type:"answer") OR (type:"page"))))
> Nothing was returned.
> Don't know why. I think this should be caused by dismax setting, probably
> mm (Minimum 'Should' Match)
>
> But I have no idea how to configure it?
>
> Please help. Thanks!
>
>
> Regards.
> Scott
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message