field:[* TO *] matches documents that have that have one or more terms
in that field. If your indexer is sending a value, it'll end up with
a term.
Note that changing from string to long requires reindexing, though
that isn't the issue here.
Erik
On Sep 30, 2009, at 2:39 AM,
Hi, i'm not having the expected results when using [* TO *], the results are
including empty fields.
Here is my configuration:
schema.xml:
bean:
@Field
private List refFaseExp= new ArrayList();
query:
http://host.com/select?rows=0&facet=true&facet.field=refFaseExp&q=*:* AND
refFaseExp:[* TO *]
Thanks Erik. I think this is the thread here:
http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200709.mbox/[EMAIL
PROTECTED]
Matt
On Sun, Mar 30, 2008 at 9:50 PM, Erik Hatcher <[EMAIL PROTECTED]>
wrote:
> Documents with a particular field can be matched using:
>
> field:[* TO *]
Documents with a particular field can be matched using:
field:[* TO *]
Or documents without a particular field with:
-field:[* TO *]
An empty field? Meaning one that was indexed but with no terms? I'm
not sure about that one. Seems like Hoss replied to something
similar on thi
I'm looking for the exact same thing.
On Sun, Mar 30, 2008 at 8:45 PM, Ismail Siddiqui <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
> I have a situation where i have to filter result on a non empty field .
> wild card wont work as it will have to match with a letter.
> How can I form query to return
Hi all,
I have a situation where i have to filter result on a non empty field .
wild card wont work as it will have to match with a letter.
How can I form query to return result where a particular field is non-empty
.
Ismail