4ervolet / sphinxsearch

Automatically exported from code.google.com/p/sphinxsearch
GNU General Public License v2.0
0 stars 0 forks source link

String filter in PHP client does not work #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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