Re: Solr/Drupal Integration - Query Question

2010-02-11 Thread jaybytez

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

Solr/Drupal Integration - Query Question

2010-02-09 Thread jaybytez

I know this is not Drupal, but thought this question maybe more around the
Solr query.

For instance, I pulled down LucidImaginations Solr install, just like the
apache solr install and ran the example solr and loaded the documents from
the exampledocs.

I can go to:

http://localhost:8983/solr/admin/

And search for video and get responses

But on my solr if I go to the full interface and use the defaults, I get no
results back because of search fields, etc.

http://localhost:8983/solr/admin/form.jsp

So my admin Solr search query looks like this when searching video:

Feb 9, 2010 1:25:49 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/select
params={explainOther=fl=indent=onstart=0q=videohl.fl=qt=wt=fq=version=2.2rows=10}
hits=2 status=0 QTime=0

But if I go into Drupal and search video, this is the query and no results
come back:

Feb 9, 2010 1:27:33 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/select
params={spellcheck=truef.changed.facet.date.start=2010-02-09T07:01:14Z/HOURfacet=truefacet.limit=20spellcheck.q=videohl.simple.pre=hl=version=1.2fl=id,nid,title,comment_count,type,created,changed,score,path,url,uid,name,ss_image_relativebf=recip(rord(created),4,19,19)^200.0f.changed.facet.date.gap=%2B1HOURhl.simple.post=facet.field=uidfacet.field=typefacet.field=languagefq=(nodeaccess_all:0+OR+hash:c13a544eb3ac)hl.fragsize=facet.mincount=1qf=name^3.0facet.date=changedhl.fl=json.nl=mapwt=jsonf.changed.facet.date.end=2010-02-09T17:44:16Z%2B1HOUR/HOURrows=10hl.snippets=start=0facet.sort=trueq=video}
hits=0 status=0 QTime=0

Any thoughts on the search query that gets generated by the Drupal/Solr
module?

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



Alfresco has internal index - integrating into Solr

2009-08-27 Thread jaybytez

I am currently prototyping the use of Alfresco Document Management that has
an internal Lucene to index all the documents managed by Alfresco.

What would I need to understand in order to integrate that Lucene Index into
a separate Solr installation?

I am new to Solr and am trying to use Solr to index WCM produced files on a
file system and then federate (integrate) the Alfresco Lucene Index.

So I want to understand how I should do this from Solr and what I need to
get from Alfresco.

Thanks...jay blanton
-- 
View this message in context: 
http://www.nabble.com/Alfresco-has-internal-index---integrating-into-Solr-tp25179342p25179342.html
Sent from the Solr - User mailing list archive at Nabble.com.