You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by mamathahl <ma...@gmail.com> on 2010/02/27 07:57:27 UTC

indexing using inbuilt lucene in Solr

Hi
I'm new to Solr.  I have a database which consists of latitude, longitude
and relevant news.  This file has been imported using dataimport.  I think
it has been indexed successfully by Solr.  Now I have to move ahead and give
few queries as mentioned below.
# hsin (great circle): http://localhost:8983/solr/select/?q=name:Minneapolis
AND _val_:"recip(hsin(0.78, -1.6, lat_rad, lon_rad, 3963.205), 1, 1, 0)"^100

# dist (Euclidean, Manhattan, p-norm):
http://localhost:8983/solr/select/?q=name:Minneapolis AND
_val_:"recip(dist(2, lat, lon, 44.794, -93.2696), 1, 1, 0)"^100 

How do I get started with it?  Should lucene be used explicitly to index the
file again? Kindly help me to get started off with it.  Thanks in advance.
-- 
View this message in context: http://old.nabble.com/indexing-using-inbuilt-lucene-in-Solr-tp27726161p27726161.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: indexing using inbuilt lucene in Solr

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Sat, Feb 27, 2010 at 12:27 PM, mamathahl <ma...@gmail.com> wrote:

> I'm new to Solr.  I have a database which consists of latitude, longitude
> and relevant news.  This file has been imported using dataimport.  I think
> it has been indexed successfully by Solr.  Now I have to move ahead and
> give
> few queries as mentioned below.
> # hsin (great circle):
> http://localhost:8983/solr/select/?q=name:Minneapolis
> AND _val_:"recip(hsin(0.78, -1.6, lat_rad, lon_rad, 3963.205), 1, 1,
> 0)"^100
>
> # dist (Euclidean, Manhattan, p-norm):
> http://localhost:8983/solr/select/?q=name:Minneapolis AND
> _val_:"recip(dist(2, lat, lon, 44.794, -93.2696), 1, 1, 0)"^100
>
> How do I get started with it?  Should lucene be used explicitly to index
> the
> file again? Kindly help me to get started off with it.  Thanks in advance.
>

Just start Solr, open up a browser and try out those queries. If you don't
get the expected results, let us know and we can figure out the problem.

-- 
Regards,
Shalin Shekhar Mangar.