On Mon, 29 Jun 2009 15:10:59 +0100
Ben <b...@autonomic.net> wrote:

> Hi Erik,
> 
> I'm not sure exactly how much context you need here, so I'll try to keep 
> it short and expand as needed.
> 
> The column I am faceting contains a comma deliniated set of vectors. 
> Each vector is made up of {Make,Year,Model} e.g. 
> _ford_1996_focus,mercedes_1996_clk,ford_2000_focus
> 
> I have a custom request handler, where if I want to find all the cars 
> from 1996 I pass in a facet query for the Year (1996) which is 
> transformed to a wildcard facet query :
> 
> _*_1996_*
> 
> In otherwords, it'll match any records whose vector column contains a 
> string, which somewhere has a car from 1996.
> 
> Why not put the Make, Year and Model in separate columns and do a facet 
> query of multiple columns?... because once we've selected 1996, we 
> should (in the above example) then be offering "ford and mercedes" as 
> further facet choices, and nothing more. If the parts were in their own 
> columns, there would be no way to tie the Makes and Models to specific 
> years, for example.
> 
[...]

Hi,
It must be late and I probably need more $coffee... but isn't what u just
described (search for 1996, show 'ford', 'mercedes') how facets DO work?
 once you have the facet on the make field, and solr told you that both 'ford'
 and 'mercedes' are available in that field, it is up to you to search for
 'make=ford and date=1996" if you ONLY want fords, generation 1996... 

cheers,
B
_________________________
{Beto|Norberto|Numard} Meijome

"He has the attention span of a lightning bolt."
  Robert Redford

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.

Reply via email to