Empty Query
i need to use sphinx only for filtering using attributes, If i make request using blank query : $sphinx->search("", 'myindex_index') results are always empty. It's normal or is a problem of sphinx.conf configuration?
is possibile make request using blank query field?
thnx
At first Sphynx - a full-text search engine. If you don't need a full-text search in a variety of fields - it's easier to make requests directly to the database, using the desired filter criteria.
my problem is that my database is big (about 10 milions of record) and query are very complex. So classic search is too slow compared with sphinx approach. With old sphinx api (with php) was possibile and was very convenient.
Thnx for reply. Bye
I can offer only a "crutch" - when you create the index, make an sql-request so that all the texts contained a particular unique word (SELECT "someuniqueword"...), and use it as a search query: $sphinx->search("someuniqueword", 'myindex_index')
declare this $ObjectName->setMatchMode(\Sphinx\SphinxClient::SPH_MATCH_EXTENDED); before $sphinx->search("", 'myindex_index') If you want to run select query on sphinx