Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an ability to search using geo-spatial queries and filter documents by expression #136

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gkozlenko
Copy link

I've added two methods to Query module for geo-spatial search:

  • spatial
  • expressionFilter

Basic usage:

var solr = require('./../lib/solr');
var client = solr.createClient();
var query = client.createQuery()
    .spatial({
        pt: '37.7749295,-122.4194155',
        sfield: 'location_srpt',
        d: 10
    }).expressionFilter('{!geofilt}');

It will find all documents which are located in 10 km radius of the chosen point.

@ColadaFF
Copy link
Collaborator

Hi there,

Can you add the tests for this feature?
Then I can merge the pull request.

@lstone
Copy link

lstone commented Dec 5, 2015

Would love to see this merged once tests are written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants