querying multiple fields as one

2010-11-04 Thread Tommaso Teofili
Hi all, having two fields named 'type' and 'cat' with identical type and options, but different values recorded, would it be possible to query them as they were one field? For instance q=type:electronics cat:electronics should return same results as q=common:electronics I know I could make it

Re: querying multiple fields as one

2010-11-04 Thread Ken Stanley
On Thu, Nov 4, 2010 at 8:21 AM, Tommaso Teofili tommaso.teof...@gmail.comwrote: Hi all, having two fields named 'type' and 'cat' with identical type and options, but different values recorded, would it be possible to query them as they were one field? For instance q=type:electronics

Re: querying multiple fields as one

2010-11-04 Thread Erick Erickson
Ken's suggestion to look at dismax is a good one, but I have a question q=type:electronics cat:electronics should do what you want assuming your default operator is OR. Is it failing? Or is the real question how you can do this automatically? I'd expect the ranking to be a bit different, but

Re: querying multiple fields as one

2010-11-04 Thread Tommaso Teofili
Hi Erick 2010/11/4 Erick Erickson erickerick...@gmail.com Ken's suggestion to look at dismax is a good one, but I have a question q=type:electronics cat:electronics should do what you want assuming your default operator is OR. correct Is it failing? Or is the real question how you

Re: querying multiple fields as one

2010-11-04 Thread Jonathan Rochkind
Tommaso Teofili wrote: No failing, just looking for how to do such expansion of fields automatically (with fields in OR but that's not an issue I think) the dismax query parser is that way.