I've experienced a similar problem before, assuming the field type is
"string" (i.e. not tokenized), there is subtle yet important difference
between a field that is null (i.e. not contained in the document) and one
that is an empty string (in the document but with no value). See
http://www.nabble.com/indexing-null-values--tf4238702.html#a12067741 for a
previous discussion of the issue.

Your query will work if you make sure the URL field is omitted from the
document at index time when the field is blank.

cheers,
Piete



On 27/09/2007, Brian Whitman <[EMAIL PROTECTED]> wrote:
>
> I have a large index with a field for a URL. For some reason or
> another, sometimes a doc will get indexed with that field blank. This
> is fine but I want a query to return only the set URL fields...
>
> If I do a query like:
>
> q=URL:[* TO *]
>
> I get a lot of empty fields back, like:
>
> <doc><str name="URL"/></doc>
> <doc><str name="URL"/></doc>
> <doc><str name="URL">http://thing.com</str></doc>
>
> What I can query for to remove the empty fields?
>
>
>
>

Reply via email to