tamaramata / solrnet

Automatically exported from code.google.com/p/solrnet
0 stars 0 forks source link

SolrQueryByDistance #205

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi guys, 

I am using SolrNet 0.4.0.2002 and there are a few issues I found about it. You 
probably know about some of them (it's a beta version as far as I noticed), but 
anyway, here it goes:

SolrQueryByDistance does not return results in the same order as when you do 
the same search from the Solr Admin page; Also, sorting by "geodist()" doesn't 
work (see the query generated by SolrNet and the one generated by the Solr 
Admin - they don't match. (I am using "{!bbox}")

Also, SolrQueryByDistance accepts an integer as the distance from the central 
point, while the solr server supports a double (ex: if you want to search on a 
radius less than 1 Km, this is not possible with SolrQueryByDistance).

On the following page (http://code.google.com/p/solrnet/wiki/Querying), please 
replace the description of the "Query By Distance" feature with an example 
using the ExtraParams property of the QueryOptions (this seems to work as it 
should and it also works with sorting by "geodist()").

Thank you!

Original issue reported on code.google.com by lavinia....@gmail.com on 4 Mar 2013 at 1:05

GoogleCodeExporter commented 8 years ago
Float distances in SolrQueryByDistance were fixed a couple of months ago: 
https://github.com/mausch/SolrNet/commit/64b86f0798bddf9815314945a8451e0cb926200
3

About the other issues, I'll need a lot more details in order to reproduce the 
issue and then fix it. A failing test case would be best.

Original comment by mauricio...@gmail.com on 14 May 2013 at 10:15

GoogleCodeExporter commented 8 years ago
Ping, are you there? I can't do anything without more information, I'll have to 
close the issue.

Original comment by mauricio...@gmail.com on 18 Jun 2013 at 4:09

GoogleCodeExporter commented 8 years ago
Hi there,

Sorry for the late reply. It's been a while since I faced those issues, so
I don't remember exactly what the problems were about...
I don't know in which version you fixed the float distances, because the
one I am using (0.4.0) still uses integer (I attached a screenshot).
Regarding the other issues, I only remember that all my problems stopped
when I removed the usage of SolrQueryByDistance and I replaced it with the
usage of ExtraParams property of the QueryOptions.

Unfortunately I don't remember more details...

Original comment by lavinia....@gmail.com on 18 Jun 2013 at 2:00

GoogleCodeExporter commented 8 years ago

Original comment by mauricio...@gmail.com on 18 Jun 2013 at 3:34