From: "Matthew A. Brown" <mat.a.br...@gmail.com>
Date: Wed, 30 Mar 2011 18:26:50 -0400
Local: Wed, Mar 30 2011 6:26 pm
Subject: Re: [sunspot] matching all documents in which a field is defined
It's perhaps mildly unintuitive, but you can just do: without(:field_name, nil) Since Sunspot interprets nil in a filter as "has no indexed value". Mat > Hello, ruby-sunspot+unsubscribe@googlegroups.com. > I have a rather simple question. The answer was not immediately obvious > Solr provides some ways of querying for all documents in which a field > What are the Sunspot practices and/or idioms for such queries? > Thank you. > -- > For more options, visit this group at http://groups.google.com/group/ruby-sunspot?hl=en. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||