Re: use query to set filter on fields

2011-07-13 Thread Igor Muntyan
Use the following query: /select?q=*:*&rows=0&wt=json&indent=true&fl=NOT_IMPORTANT&facet=true&facet.zeros=false&fq={!tag=mk q.op=OR}make:(Ford red 2010)&fq={!tag=cl q.op=OR}color:(Ford red 2010)&fq={!tag=yr q.op=OR}year:(Ford red 2010)&facet.field={!ex=cl,yr key=mk}make&facet.field={!ex=mk,yr k

Re: use query to set filter on fields

2011-01-04 Thread Raymi
I'm not sure, whether I made myself very clear. I don't think that it is difficult to evaluate the query. Here's a (very inefficient) algorithm in pseudocode that would do, what I have in mind: query = ... foreach (term in query) foreach (field in SOLR.config.fields) result = SOLR.query(

Re: use query to set filter on fields

2011-01-04 Thread Ahmet Arslan
> I'm not sure, whether I made myself very clear. I don't > think that it is difficult to evaluate the query. Here's a > (very inefficient) algorithm in pseudocode that would do, > what I have in mind: > > query = ... > > foreach (term in query) >   foreach (field in SOLR.config.fields) >     res

Re: use query to set filter on fields

2011-01-04 Thread Raymi
No, I don't. But since I'll store documents in solr having "color" set to "red", "green", "blue" and "manufacturer" set to "ford", "bmw" etc. the information is available. Okey information is available but the difficult part is recognize those things from the free form text query. There is no s

Re: use query to set filter on fields

2011-01-04 Thread Ahmet Arslan
> No, I don't. > But since I'll store documents in solr having "color" set > to "red", > "green", "blue" and "manufacturer" set to "ford", "bmw" > etc. the > information is available. Okey information is available but the difficult part is recognize those things from the free form text query. T

Re: use query to set filter on fields

2011-01-04 Thread Raymi
I'm evaluating SOLR and have a question about query processing. Is it possible to set filters on fields according to the terms entered in the query? I know that I can use dismax to search in multiple fields. However, what I want to achieve for a given query is the following: - parse all terms in

Re: use query to set filter on fields

2011-01-04 Thread Ahmet Arslan
> I'm evaluating SOLR and have a question about query > processing. Is it possible to set filters on fields > according to the terms entered in the query? I know that I > can use dismax to search in multiple fields. However, what I > want to achieve for a given query is the following: > - parse a