tags:

views:

38

answers:

1

I'm running a search with a type field. I'd like to show results of a certain type ONLY if two other field have values for them. So in my filter query I thought it would be(type:sometype AND field1:* AND field2:*) but wildcard queries can't start with the *.

+3  A: 

Use a range query to express "field must have any value", e.g.:

type:sometype AND field1:[* TO *] AND field2:[* TO *]

Mauricio Scheffer