lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lance Norskog" <goks...@gmail.com>
Subject RE: Processing solr response....
Date Tue, 04 Sep 2007 20:06:30 GMT
This goes through the Solr http response, right? The Solr XSL processor
feature will do this for you.

You write an XSL script and add it to $SOLR/conf/xslt. You then use extra
parameters in a query. The output XML will be transformed by the XSL.

The XSL can create anything you want: lists of IDs, etc. I just wrote a
script that creates the <update> format, so that I can do bulk copies from
production into our development solr.  I did not implement the multivalued
<arr> data type; if someone wants to do this and submit it please contact
me.

-----Original Message-----
From: Ravish Bhagdev [mailto:ravish.bhagdev@gmail.com] 
Sent: Tuesday, September 04, 2007 7:30 AM
To: solr-user@lucene.apache.org
Subject: Processing solr response....

Hi,

Apologies if this has been asked before but I couldn't find anything when I
searched...

I have been looking ant SolJava examples.  I've been using Nutch/Lucene
before which returns results from query nicely in a class with url, title
and snippet (summary).  While Solr seems to return XML with score and other
details with just the url field.

Is there a way to avoid having to deal with XML after each query?  I want to
avoid parsing it will be much better if I could get results directly into a
Java data structure like a List or Map etc through the API.

Also can anyone point me to some example or documentation which clarifies
XML returned by Solr and also how to get variations of this including
specifying what exactly i would see in xml like which particular fields etc.
Hope i'm making sense....

Thanks,
Ravi


Mime
View raw message