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: Can I used .XML files instead of .OSM files
Date Thu, 04 Mar 2010 22:58:09 GMT
Is the 'body' field a text type? If it is a string, searching for
words will not work.

Does search for 'id:1' work?

On Thu, Mar 4, 2010 at 3:44 AM, mamathahl <mamatha.hl@gmail.com> wrote:
>
> I forgot to mention that I have been working on geo-saptial examples
> downloaded from http://www.ibm.com/developerworks/java/library/j-spatial/.
> I have replaced the OSM files(data) which initially existed, with my data
> (i.e XML file with OSM extension).  My XML file has many data records.  The
> 1st record is shown below.
> <row id="1" lat="47.8956" lng="-73.5412" body="........Some relevant
> text........"
> I use the following commands to index and retrieve the data:
> ant index
> ant start-solr
> and then hit the url http://localhost:8983/solr/admin
> But when a keyword that exists in the data file is given, I get the
> following
> −
> <response>
> −
> <lst name="responseHeader">
> <int name="status">0</int>
> <int name="QTime">0</int>
> −
> <lst name="params">
> <str name="indent">on</str>
> <str name="start">0</str>
> <str name="q">DRI</str>
> <str name="version">2.2</str>
> <str name="rows">10</str>
> </lst>
> </lst>
> <result name="response" numFound="0" start="0"/>
> </response>
> Since there is no error message being displayed, I'm unable to figure out
> what is going wrong.  Kindly help me by providing an appropriate solution.
>
> mamathahl wrote:
>>
>> I'm very new to Solr.  I downloaded apache-solr-1.5-dev and was trying out
>> the example in order to first figure out how Solr is working.  I found out
>> that the data directory consisted of .OSM files.  But I have an XML file
>> consisting of latitude, longitude and relevant news for that location.
>> Can I just use the XML file to index the data or is it necessary for me to
>> convert this file to .OSM file using some tool and then proceed further?
>> Also the attribute value from the .OSM file is being considered in that
>> example.  Since there are no attributes for the tags in my XML file, how
>> can I extract only the contents of my tags?Any help in this direction will
>> be appreciated.  Thanks in advance.
>>
>
> --
> View this message in context: http://old.nabble.com/Can-I-used-.XML-files-instead-of-.OSM-files-tp27769082p27779694.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
Lance Norskog
goksron@gmail.com

Mime
View raw message