On Thursday 26 July 2007 03:12:20 daniel rosher wrote:
> In this case you should look at the source for RangeFilter.java.
>
> Using this you could create your own filter using TermEnum and TermDocs
> to find all documents that had some value for the field.
That's certainly the way to do it for spe
In this case you should look at the source for RangeFilter.java.
Using this you could create your own filter using TermEnum and TermDocs
to find all documents that had some value for the field.
You would then flip this filter (perhaps write a FlipFilter.java, that
takes an existing filter in it
what if I do not know all possible values of that field which is a
typical case in a free text search?
daniel rosher wrote:
You will be unable to search for fields that do not exist which is what
you originally wanted to do, instead you can do something like:
-Establish the query that will sel
You will be unable to search for fields that do not exist which is what
you originally wanted to do, instead you can do something like:
-Establish the query that will select all non-null values
TermQuery tq1 = new TermQuery(new Term("field","value1"));
TermQuery tq2 = new TermQuery(new Term("fiel
daniel rosher wrote:
Perhaps you can use a filter in the following way.
-Create a filter (via QueryFilter) that would contain all document that
do not have null values for the field
Interesting: what does the QueryFilter look like? Isn't it just as hard
as finding out what docs have the null
Nobody can answer that question, you have to test in your particular
situation. Filters are very efficient to use once created, can be created
once and used often, etc.
Adding a special value to stand for an empty field is conceptually
simple, and queries are straight forward.
Unless you can dem
On 7/24/07, daniel rosher <[EMAIL PROTECTED]> wrote:
Perhaps you can use a filter in the following way.
-Create a filter (via QueryFilter) that would contain all document that
do not have null values for the field
-flip the bits of the filter so that it now contains documents that have
null valu
Would it be more efficient to create an additional inverted field where I
assign a value to that field only when the field I would like to search is
NULL?
daniel rosher wrote:
>
> Perhaps you can use a filter in the following way.
>
> -Create a filter (via QueryFilter) that would contain all d
Perhaps you can use a filter in the following way.
-Create a filter (via QueryFilter) that would contain all document that
do not have null values for the field
-flip the bits of the filter so that it now contains documents that have
null values for a field
-Use the filter in conjunction with subs
If you want performance, a better way might be to assign some special
string/value (if it's easy to create) to the missing field of docs and
index the field without tokenizing it. Then you may search for that
special value to find the docs.
Jay
Les Fletcher wrote:
Does this particular range
Does this particular range query have any significant performance issues?
Les
Erik Hatcher wrote:
On Jul 23, 2007, at 11:32 AM, testn wrote:
Is it possible to search for the document that specified field
doesn't exist
or such field value is null?
This is from Solr, so I'm not sure off the
On Jul 23, 2007, at 11:32 AM, testn wrote:
Is it possible to search for the document that specified field
doesn't exist
or such field value is null?
This is from Solr, so I'm not sure off the top of my head if this
mojo applies by itself, but a search for -fieldname:[* TO *] will
result
Perhaps the most straight-forward way would be to index a known unique value
for each document that would have had a null entry. Conceptually, when a
field would be null, index the value "nothinghere". Then you can just search
on documents where the value is equal to "nothinghere".
Alternatively,
13 matches
Mail list logo