lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pieter Berkel" <>
Subject Re: indexing null values?
Date Fri, 10 Aug 2007 02:07:40 GMT
On 10/08/07, Yonik Seeley <> wrote:

> I take that back... being able to specify open ends on the range query
> via the parser is also another Solr specific thing.

This is one of the reasons why we're moving from a custom-build Lucene
solution to Solr.

Wouldn't foo:"" work for a string (untokenized) field?
> For a tokenized field that typically eliminates whitespace, no zero
> length strings would be indexed anyway.

Unfortunately the Lucene query parser doesn't accept empty string values in
the query string:

SEVERE: org.apache.lucene.queryParser.ParseException: Cannot parse
'article_type:""': Lexical error at line 1, column 16.  Encountered: <EOF>
after : "\"\""
        at org.apache.lucene.queryParser.QueryParser.parse(
        at org.apache.solr.handler.StandardRequestHandler.handleRequestBody(
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(
        at org.apache.solr.core.SolrCore.execute(
        at org.apache.solr.servlet.SolrDispatchFilter.execute(
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
        at org.apache.catalina.core.StandardWrapperValve.invoke(
        at org.apache.catalina.core.StandardContextValve.invoke(
        at org.apache.catalina.core.StandardHostValve.invoke(
        at org.apache.catalina.valves.ErrorReportValve.invoke(
        at org.apache.catalina.core.StandardEngineValve.invoke(
        at org.apache.catalina.connector.CoyoteAdapter.service(
        at org.apache.coyote.http11.Http11Processor.process(
        at org.apache.tomcat.util.threads.ThreadPool$

While it would be a useful feature to have, I'm not sure if it's worth
persuing the matter further.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message