[jira] [Created] (SOLR-4027) Parse exception with geofilt in parens

2012-11-01 Thread Mauricio Scheffer (JIRA)
Mauricio Scheffer created SOLR-4027:
---

 Summary: Parse exception with geofilt in parens
 Key: SOLR-4027
 URL: https://issues.apache.org/jira/browse/SOLR-4027
 Project: Solr
  Issue Type: Bug
  Components: query parsers
Affects Versions: 4.0
Reporter: Mauricio Scheffer


In the sample index that comes with the distro, this works fine:

[http://localhost:8983/solr/collection1/select?q=*%3A*&fq=%7B!geofilt%20sfield%3Dstore%20pt%3D26%2C-80%20d%3D30%7D]

But if you add parens around the geofilt it throws a ParseException:

[http://localhost:8983/solr/collection1/select?q=*%3A*&fq=%28%7B!geofilt%20sfield%3Dstore%20pt%3D26%2C-80%20d%3D30%7D%29]

This is of course the simplest possible case. My particular query involves a 
much more complex query.

Here's the stack trace:

{noformat}
SEVERE: org.apache.solr.common.SolrException: org.apache.lucene.queryparser.clas
sic.ParseException: Cannot parse '({!type=geofilt pt=26,-80 sfield=store d=30})'
: Encountered "  "sfield=store "" at line 1, column 26.
Was expecting one of:
"]" ...
"}" ...

at org.apache.solr.handler.component.QueryComponent.prepare(QueryCompone
nt.java:148)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(Sea
rchHandler.java:185)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandl
erBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1699)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter
.java:455)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilte
r.java:276)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1337)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java
:484)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
ava:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:524)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl
er.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl
er.java:1065)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
413)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle
r.java:192)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle
r.java:999)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
ava:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(Cont
extHandlerCollection.java:250)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerColl
ection.java:149)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper
.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:351)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(Abstrac
tHttpConnection.java:454)
at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(Blockin
gHttpConnection.java:47)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(Abstra
ctHttpConnection.java:890)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.header
Complete(AbstractHttpConnection.java:944)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)

at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpCo
nnection.java:66)
at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(So
cketConnector.java:254)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo
l.java:599)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool
.java:534)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.lucene.queryparser.classic.ParseException: Cannot parse '(
{!type=geofilt pt=26,-80 sfield=store d=30})': Encountered "  "sfiel
d=store "" at line 1, column 26.
Was expecting one of:
"]" ...
"}" ...

at org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryPars
erBase.java:125)
at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:7
2)
at org.apache.solr.search.QParser.getQuery(QParser.java:143)
at org.apache.solr.handler.component.QueryComponent.prepare(QueryCompone
nt.java:137)
... 30 more
Caused by: org.apache.lucene.queryparser.classic.ParseException: Encountered " <
RANGE_GOOP> "sfield=store "" at line 1, column 26.
Was expecting one of:
"]" ...
"}" ...

at org.apache.lucene.queryparser.classic.QueryParser.generateParseExcept
ion(QueryParser.java:708)
at org.apache.lucene.queryparser.classic.QueryParser.jj_con

[jira] Commented: (LUCENENET-380) Evaluate Sharpen as a port tool

2010-11-08 Thread Mauricio Scheffer (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENENET-380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12929768#action_12929768
 ] 

Mauricio Scheffer commented on LUCENENET-380:
-

@Aaron Powell: the ASF has official Git mirrors at github, see 
https://github.com/apache/lucene.net
It's outdated so there seems to be a problem with the ASF sync, I'd notify the 
ASF infrastructure team about it.
See also http://www.apache.org/dev/git.html

> Evaluate Sharpen as a port tool
> ---
>
> Key: LUCENENET-380
> URL: https://issues.apache.org/jira/browse/LUCENENET-380
> Project: Lucene.Net
>  Issue Type: Task
>Reporter: George Aroush
> Attachments: IndexWriter.java, Lucene.Net.Sharpen20101104.zip, 
> NIOFSDirectory.java, QueryParser.java, TestBufferedIndexInput.java, 
> TestDateFilter.java
>
>
> This task is to evaluate Sharpen as a port tool for Lucene.Net.
> The files to be evaluated are attached.  We need to run those files (which 
> are off Java Lucene 2.9.2) against Sharpen and compare the result against 
> JLCA result.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.