Re: Finding documents with undefined field

2006-06-08 Thread Yonik Seeley
On 6/8/06, Fabio Confalonieri <[EMAIL PROTECTED]> wrote: Ok at last I tried the easy way so, when I find a particular predefined "undefined-value" in a filter or facet, I convert the query to parse to: "type:ad AND -" +field+":[* TO *]" "type:ad" matches all my documents, the other type I ha

Re: Finding documents with undefined field

2006-06-08 Thread Fabio Confalonieri
Chris Hostetter wrote: > > > There are a couple of things you can do here... > > 1) Use the same approach i described before if you have a uniqueKey, > search for all things with a key and then exclude things that have a value > in your field. Since you are writing a request handler, you coul

Re: Finding documents with undefined field

2006-06-07 Thread Chris Hostetter
: One problem is that not() needs to know how large the sets are. I : could add a DocSet.flip(int maxDoc) or a DocSet.flip(int startIndex, : int endIndex) or something like that... but a user would need to know : what maxDoc is... alternately, we could make maxDoc an intrinsic and immutable part

Re: Finding documents with undefined field

2006-06-07 Thread Erik Hatcher
On Jun 7, 2006, at 4:18 PM, Yonik Seeley wrote: I do still need to do these kinds of inverted sets somehow. One problem is that not() needs to know how large the sets are. I could add a DocSet.flip(int maxDoc) or a DocSet.flip(int startIndex, int endIndex) or something like that... but a use

Re: Finding documents with undefined field

2006-06-07 Thread Yonik Seeley
On 6/7/06, Erik Hatcher <[EMAIL PROTECTED]> wrote: Solr's DocSets are a better way to go in the long run, I'm convinced - I'm just now starting to leverage them in other ways. Some random performance numbers... when I enabled HashDocSet support, performance of CNET shoppers faceted browsing req

Re: Finding documents with undefined field

2006-06-07 Thread Erik Hatcher
On Jun 7, 2006, at 3:43 PM, Chris Hostetter wrote: Getting the inverse of a DocSet is currently not a built in operation, you have to use the getBits() method and operate on it, something like this should work... DocSet definedSet = search.getDocSet(parseQuery("field:[* TO *]")); DocSet

Re: Finding documents with undefined field

2006-06-07 Thread Chris Hostetter
: actually I've developed my own FacetRequestHandler extending the query : format and adding a showfacet parameter (it's a little custom on our needs, : but I'd like to publish it when we have finished). I'd love to see more cutom request handlers ... it's always good to know i'm not the oly one

Re: Finding documents with undefined field

2006-06-07 Thread Fabio Confalonieri
Thank You Hoss (You all are always very responsive...), actually I've developed my own FacetRequestHandler extending the query format and adding a showfacet parameter (it's a little custom on our needs, but I'd like to publish it when we have finished). What I do is the merge of some ideas from t

Re: Finding documents with undefined field

2006-06-06 Thread Chris Hostetter
: I would like to search for all documents with a field not defined. : Say You have documents with title_s defined and some documents without : title_s: I would like to obtain all documents without title_s. : : I've not find a clue, perhaps it's not possible; I would like to know if : there is an a