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

String filter in PHP client does not work #6

Open
GoogleCodeExporter opened this issue May 8, 2015 · 1 comment
Open

String filter in PHP client does not work #6

GoogleCodeExporter opened this issue May 8, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. In Sphinx 1.10-beta conf create a source and add a sql_field_string = field
2. In PHP Client API (version from 2010-06-29 14:08:19) try to use 
$cl->SetFilter('field', array('value'));
3. Get Assertion Failed errors

What is the expected output? What do you see instead?

I was expecting to see the result set, instead I see no results (and the 
Assertions errors)

What version of the product are you using? On what operating system?

1.10-beta on Linux 32bit with PHP API version from 2010-06-29 14:08:19

Please provide any additional information below.

As far as I understood Sphinx 1.10-beta "added string attributes support 
(sql_attr_string, sql_field_string, xml_attr_string, xml_field_string 
directives)" however the PHP API cannot use string filters.

I also try using the lastest PHP API from trunk (today 24th Feb 2011) without 
success.

Original issue reported on code.google.com by renas...@gmail.com on 24 Feb 2011 at 3:57

@GoogleCodeExporter
Copy link
Author

Ops,

it seems that this is not as I understood, I just read the following in the 
manual and would like to recall the issue I opened.

"As of 1.10-beta, strings can only be used for storage and retrieval. They can 
not participate in expressions, be used for filtering, sorting, or grouping 
(ie. in WHERE, ORDER or GROUP clauses)."

Cheers

Original comment by renas...@gmail.com on 24 Feb 2011 at 4:04

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

No branches or pull requests

1 participant