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

Error and problems setting filters #21

Closed
darklow opened this issue Jan 13, 2012 · 3 comments
Closed

Error and problems setting filters #21

darklow opened this issue Jan 13, 2012 · 3 comments

Comments

@darklow
Copy link

darklow commented Jan 13, 2012

  1. First there is an error in limestone.js line 296
request.push_lstring(filter.attr);

i think it sould be

request.push.lstring(filter.attr);
  1. Even i fix the problem there is no way i can specify the simplest filters, like filter by type_id=3

If i try:

var filter = { 'type': Sphinx.filterTypes.VALUES, 'attr': 'type_id', values: [ 3 ] };
query_config['filters'] = [ filter ];

i receive "Search error"

Any ideas on correct syntax to specify filters?
Maybe it is related to #22, however even i try to fix iterating problems, i still got "Search error"

Thanks

@kurokikaze
Copy link
Owner

Yes, there was a bug in filter query building. I've fixed it in latest commit but I don't have any sample indices with attributes at hand.

@darklow
Copy link
Author

darklow commented Jan 13, 2012

I just tested latest commit and filters now work perfectly! :)
@kurokikaze thanks.

@kurokikaze
Copy link
Owner

@darkflow No problem :) I've just created test source/index with attributes and tested them too. Examples of filters syntax (very cumbersome by now) are in testfilters.js.

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

No branches or pull requests

2 participants