lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Bizarre DisMax behavior: "q" parameter not working but "q.alt" is, and multi-valued fields not matching at all
Date Fri, 02 May 2008 00:25:12 GMT
I don't see an immediate problem.
I would:
- enter the problematic query on the Solr Admin Analysis page and make sure all is sane there
- use &debugQuery=true and see how your query is rewritten

Otis--

Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch

----- Original Message ----
> From: Ezra Epstein <c-Ezra.Epstein@theplatform.com>
> To: solr-user@lucene.apache.org
> Sent: Thursday, May 1, 2008 9:50:00 PM
> Subject: Bizarre DisMax behavior:  "q" parameter not working but "q.alt" is, and multi-valued
fields not matching at all
> 
> Config:
> 
> 1.  The relevant part of the solrconfig.xml:
> 
>   
> defType="dismax">
>     
>      explicit
>      0.01
>      
>         primaryCategory^2 cat^0.5
>      
>      
>         primaryCategory^2 cat^0.5
>      
>      
>          id,contentID
>      
>      100
>      *:*
>     
>   
> 
> 2.  The relevant part of the schema.xml 
> 
>    
> stored="true" required="true" />
>    
> required="false" multiValued="true"/>
> 
> 3.  Some queries with curious results:
> 
> a.  http://test02:8080/sfx/genre?fl=score
> Fine - all items returned, as expected.  E.g.,:
> 
> 
>     
>         1.0
>         
>             Drama
>             Featured Titles
>         
>         726032414
>         Drama
>         ...
>     
>     
>         1.0
>         
>             Animation
>             Featured Titles
>         
>         726030178
>         Animation
>         ...
>     
> 
> 
> b. http://test02:8080/sfx/genre?fl=score&q=drama
> Works: Returns the single, expected result.  
> "Drama" shows up in both a single-valued field (primaryCategory) and a
> multi-valued field (cat), both of which are listed in the /genre
> response handler's "qf" parameter.
> 
> c. http://test02:8080/sfx/genre?fl=score&q=Featured%20Titles
> No results. "Featured Titles" appears only in the multi-valued "cat"
> field.  
> 
> What am I doing wrong?
> 
> 
> 



Mime
View raw message