Re: search for non empty field
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, Jorge Agudo Praena wrote: 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 *] query results: (...) - - 32 (...) I tried changing type="string" to "long" and nothing changed. When I use -refFaseExp:[* TO *], results 0 documents. Any idea? Thx in advance. On Mon, Mar 31, 2008 at 2:07 PM, Matt Mitchell wrote: Thanks Erik. I think this is the thread here: http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200709.mbox/%3c67117a73-2208-401f-ab5d-148634c77...@variogr.am%3e Matt On Sun, Mar 30, 2008 at 9:50 PM, Erik Hatcher > wrote: 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 this last week or so though - check the archives. Erik On Mar 30, 2008, at 9:43 PM, Matt Mitchell wrote: I'm looking for the exact same thing. On Sun, Mar 30, 2008 at 8:45 PM, Ismail Siddiqui 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 result where a particular field is non-empty . Ismail
Re: search for non empty field
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 *] query results: (...) - - 32 (...) I tried changing type="string" to "long" and nothing changed. When I use -refFaseExp:[* TO *], results 0 documents. Any idea? Thx in advance. On Mon, Mar 31, 2008 at 2:07 PM, Matt Mitchell wrote: > Thanks Erik. I think this is the thread here: > > > http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200709.mbox/%3c67117a73-2208-401f-ab5d-148634c77...@variogr.am%3e > > Matt > > On Sun, Mar 30, 2008 at 9:50 PM, Erik Hatcher > wrote: > > > 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 this last week or so though - check the archives. > > > >Erik > > > > > > On Mar 30, 2008, at 9:43 PM, Matt Mitchell wrote: > > > I'm looking for the exact same thing. > > > > > > On Sun, Mar 30, 2008 at 8:45 PM, Ismail Siddiqui > > > 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 result where a particular field is > > >> non-empty > > >> . > > >> > > >> > > >> > > >> Ismail > > >> > > > > >
Re: search for non empty field
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 *] > > 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 this last week or so though - check the archives. > >Erik > > > On Mar 30, 2008, at 9:43 PM, Matt Mitchell wrote: > > 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 result where a particular field is > >> non-empty > >> . > >> > >> > >> > >> Ismail > >> > >
Re: search for non empty field
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 this last week or so though - check the archives. Erik On Mar 30, 2008, at 9:43 PM, Matt Mitchell wrote: 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 result where a particular field is non-empty . Ismail
Re: search for non empty field
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 result where a particular field is > non-empty > . > > > > Ismail >
search for non empty field
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