So I got it to work by running the drupal cron.php.

I was originally trying to use the exampledocs, indexing that content, and
making that index available to the Drupal solr.

But it might just be that they are different indexes? And that's why I
wasn't get responses.

One quick question, the Drupal/Solr Facets are awesome, the only thing is
the URLs are escaped and seem to cause problems when I click the link.  Is
this most likely an encoding issue or something in Solr that is causing
these links to be created poorly?

For instance:

http://localhost:8080/search/apachesolr_search/drupal?filters=tid%3A1%20tid%3A3%20%28nodeaccess_all%3A0%20OR%20hash%3Ac13a544eb3ac%29

This returns no results and produces the following error in Solr (is this
error related to http://issues.apache.org/jira/browse/SOLR-1231):

Feb 11, 2010 12:18:58 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException:
org.apache.lucene.queryParser.ParseException: Cannot parse
'hash:c13a544eb3ac)': Encountered " ")" ") "" at line 1, column 17.
Was expecting one of:
    <EOF>
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    "(" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    "[" ...
    "{" ...
    <NUMBER> ...

        at
org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:108)
        at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:174)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:285)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
        at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse
'hash:c13a544eb3ac)': Encountered " ")" ") "" at line 1, column 17.
Was expecting one of:
    <EOF>
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    "(" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    "[" ...
    "{" ...
    <NUMBER> ...

        at
org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:205)
        at
org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:78)
        at org.apache.solr.search.QParser.getQuery(QParser.java:131)
        at
org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:103)
        ... 22 more
Caused by: org.apache.lucene.queryParser.ParseException: Encountered " ")"
") "" at line 1, column 17.
Was expecting one of:
    <EOF>
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    "(" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    "[" ...
    "{" ...
    <NUMBER> ...

        at
org.apache.lucene.queryParser.QueryParser.generateParseException(QueryParser.java:1846)
        at
org.apache.lucene.queryParser.QueryParser.jj_consume_token(QueryParser.java:1728)
        at
org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1255)
        at
org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:200)
        ... 25 more

Feb 11, 2010 12:18:58 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/select
params={spellcheck=true&f.changed.facet.date.start=2010-02-09T07:01:14Z/HOUR&facet=true&facet.limit=20&spellcheck.q=drupal&hl.simple.pre=&hl=&version=1.2&fl=id,nid,title,comment_count,type,created,changed,score,path,url,uid,name,ss_image_relative&f.created.facet.date.start=2010-02-09T07:01:14Z/HOUR&bf=recip(rord(created),4,4,4)^200.0&f.changed.facet.date.gap=%2B1HOUR&hl.simple.post=&facet.field=uid&facet.field=is_book_bid&facet.field=type&facet.field=language&facet.field=im_vid_3&facet.field=im_vid_1&facet.field=im_vid_2&fq=tid:1&fq=tid:3&fq=hash:c13a544eb3ac)&fq=(nodeaccess_all:0+OR+hash:c13a544eb3ac)&hl.fragsize=&facet.mincount=1&qf=tags_inline^1.0&qf=body^40&qf=tags_a^5.0&qf=name^3.0&qf=taxonomy_names^2.0&qf=title^5.0&facet.date=created&facet.date=changed&hl.fl=&json.nl=map&f.changed.facet.date.end=2010-02-10T06:18:49Z%2B1HOUR/HOUR&wt=json&rows=10&f.created.facet.date.gap=%2B1HOUR&hl.snippets=&facet.sort=true&start=0&q=drupal&f.created.facet.date.end=2010-02-10T06:18:49Z%2B1HOUR/HOUR}
status=400 QTime=0

Thanks for your help,

Jay
-- 
View this message in context: 
http://old.nabble.com/Solr-Drupal-Integration---Query-Question-tp27522362p27554055.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to