Re: Can I used .XML files instead of .OSM files

2010-03-05 Thread mamathahl
Thanks for your valuable suggestion. My XML file does not contain tags at all. Its just of this format According to me(if my understanding is right), posts each record into a Solr document. This could be done, if I would be using only data consisting of lat,lng and body. But I need to gener

Re: Can I used .XML files instead of .OSM files

2010-03-05 Thread Erick Erickson
I think you need to back up a step or three here. If I'm reading your messages right, you've essentially taken an arbitrary file, renamed it and tried to index it. This won't work unless you make your schema match, and the xml file has the proper tags. SOLR doesn't magically index arbitrary XML. T

Re: Can I used .XML files instead of .OSM files

2010-03-05 Thread mamathahl
The body field is of "string" type. When it was tried giving "text", it gives error. There is nothing called Textparser. Its a stringparser. The body content of a few records are really huge. I am not sure whether string can handle such huge amount of data. When ant index is done, it says "Ind

Re: Can I used .XML files instead of .OSM files

2010-03-04 Thread Lance Norskog
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 wrote: > > I forgot to mention that I have been working on geo-saptial examples > downloaded from http://www.ibm.com/developerworks/java/l

Re: Can I used .XML files instead of .OSM files

2010-03-04 Thread mamathahl
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

Re: Can I used .XML files instead of .OSM files

2010-03-03 Thread Marc Sturlese
Are you sure you don't have a folder called exampledocs with xml files inside? These are the files to index as a first example: apache-solr-1.5-dev/example/exampledocs Check the /home/marc/Desktop/data/apache-solr-1.5-dev/example/solr/conf/schema.xml and solrconfig.xml and you will see how to con