Reputation: 5233
Could I search with sphinx only by attributes without query word
config:
sql_query = SELECT p.ID as price_id, p.info, p.sort_id, p.made_id, p.category_id, 'prices' as table_id FROM price AS p
sql_query_info = SELECT * FROM price WHERE ID = $id
sql_attr_uint = sort_id
...
min_word_len = 0
min_infix_len = 0
min_prefix_len = 0
enable_star = 1
docinfo = extern
code:
$search->SetFilter('sort_id',[1,2]);
$search->Query("*","prices");
Get 0 results
Upvotes: 2
Views: 1467
Reputation: 21091
$search->Query("","prices");
If that returns no results, you've got some other logic error.
Tangential, why are you 'enable_star' with infix/prefix set to 0? It will have no effect.
Upvotes: 1