Thursday 01 April 2010 7:42:01 am
I am working on a site that implements eZ Find using Solr via the eZ Find API. I do wonder if some of our problems would be solved using the eZ Find template tag, but since the site is already developed it is somewhat of a moot point. Into to the API and the Solr index. Part of our filtered query (fq) is: ( meta_contentclass_id_si:49 AND attr_brand_t:( "Hudson" ) ) AND ( meta_contentclass_id_si:49 AND attr_in_stock_b:1 ) What we want is to match all products (content class 49) in the Solr index that have a brand name of "Hudson." The problem is that it returns products where Hudson is any part of the brand name so we get products with the brand name "Alexis Hudson" and "Hudson Robes" in the results. How can we get the brand name to match the single word passed? I know I can get this to work if I explicitly exclude other brands with Hudson in the name such as: ( meta_contentclass_id_si:49 AND attr_brand_t:( "Hudson" ) ) AND ( meta_contentclass_id_si:49 AND attr_in_stock_b:1 ) AND NOT attr_brand_t:( "Alexis Hudson" ) AND NOT attr_brand_t:( "Hudson Robes" ) But to do that I need to search for all related brands and I would prefer to avoid that if possible. Is there a way to make the filtered query terms stricter?
Web Developer
Coupon Cabin
Chicago, IL
|