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: Unable to filter fq param on a dynamic field
Date Thu, 18 Sep 2008 15:50:14 GMT
Barry, does this return the correct hits:

http://127.0.0.1:8080/apache-solr-1.3.0/IvolutionSearch?q=Output-Type-facet:Monochrome

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



----- Original Message ----
> From: Barry Harding <barry@misco.co.uk>
> To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
> Sent: Thursday, September 18, 2008 7:21:49 AM
> Subject: Unable to filter fq param on a dynamic field
> 
> 
> 
> Hi,
> 
> I have a fairly simple solr setup with several predefined fields that are 
> indexed and stored and also depending on the type of product I also add various 
> dynamic fields of type string to a record, and I should mention that I am using 
> the
> solr.DisMaxRequestHandler request handler called "/IvolutionSearch" in my 
> example requests.
> 
> 
> 
> My Schema is as follows:
> 
> 
> required="true" />
> 
> 
> required="true" />
> 
> 
> required="true" />
> 
> 
> required="true" />
> 
> 
> 
> 
> required="true" />
> 
> 
> />
> 
> 
> required="true" />
> 
> 
> />
> 
> 
> 
> 
> required="true" />
> 
> 
> required="false" />
> 
> 
> required="false" />
> 
> 
> required="true" />
> 
> 
> required="false" />
> 
> 
> required="true" />
> 
> 
> 
> 
> multiValued="false" />
> 
> 
> 
> Now I can query for any of the fixed field types Such as ProductName or 
> ReviewRating and get the results I expect but when I try to run a filter query 
> on the dynamic fields in the result, I always end up with no results being 
> returned.
> 
> 
> 
> So if I run the following query against my copy of solr 1.3 I get the results I 
> am expecting
> 
> 
> 
> http://127.0.0.1:8080/apache-solr-1.3.0/IvolutionSearch?q=laser&rows=100
> 
> 
> 
> - 
> - 
>   $A
>   Mono Laser Printers
>   Printers|Mono Laser Printers
>   Wired
>   UK
>   UK$AQ969719
>   3500V_DN
>   Xerox
>   Xerox
>   Monochrome
>   The Xerox Phaser 3500 series printer provides an 
> affordable solution to meet the increasing volume a
>   464.10
>   Q969719
>   XEROX 3500DN MONO LASER
>   
>   E000
>   2
>   Laser
>   26099.jpg
>   Workgroup printer
>   MLASERPRN
>   2008-09-17T17:10:44.37Z
>   
> - 
>   $B
>   Mono Laser Printers
>   Printers|Mono Laser Printers
>   Wired
> 
> and so on for the 100 results
> 
> no if I try to filter those results to just those that contain 
> "Output-Type-facet" equaling "Monochrome"
> 
> using :
> http://127.0.0.1:8080/apache-solr-1.3.0/IvolutionSearch?q=laser&rows=100&fq=Output-Type-facet:Monochrome
> or
> 
> http://127.0.0.1:8080/apache-solr-1.3.0/IvolutionSearch?q=laser&rows=100&fq="Output-Type-facet":"Monochrome"
> or
> http://127.0.0.1:8080/apache-solr-1.3.0/IvolutionSearch?q=laser&rows=100&fq="Output-Type-facet:Monochrome"
> or
> http://127.0.0.1:8080/apache-solr-1.3.0/IvolutionSearch?q=laser&rows=100&fq=Output-Type-facet:"Monochrome"
> 
> 
> 
> I just get zero results back even though I know that filed contains that value, 
> please before I pull my hair out tell me what mistake I have made, why can I 
> query using a static field and not a dynamic field
> 
> any help even if its to say I have been stupid or to tell me to reread a section 
> of the manual/Wiki because I did not get the point much appreciated.
> 
> 
> 
> Thanks
> 
> Barry H
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ________________________________________________________________________
> Misco is a division of Systemax Europe Ltd.  Registered in Scotland Number 
> 114143.  Registered Office: Caledonian Exchange, 19a Canning Street, Edinburgh 
> EH3 8EG.  Telephone +44 (0)1933 686000.


Mime
View raw message