linux - SPHINX Match Phrases only, and SPHINX Automatic Indexing in PHP -
i building full-text search engine returns results phrases.
(a) trying match phrases using sph_match_phrase in sphinx using php. problem when search for, e.g. "this phrase", produces relevant results "this phrase" , "a phrase" , "this a" , "this is" , "phrase" etc. there way limit results finish phrase?
what i've tried: searched s/o , found sphinx: how set sphinx exact string match? suggests placing search query in quotes. tried returned 0 search results when appended search terms.
(b) it's first time using sphinx, , have little linux experience managed , running on linux vps. started indexer service not know how create re-index automatically @ intervals. sphinx configuration or linux command?
what i've tried: searched s/o (b) above , found this, ruby on rails thinking sphinx automatic indexing didn't help me.
thanks
which suggests placing search query in quotes.
yes. thats utilize extended match mode. sph_match_extended
in php create sure using $cl->setmatchmode() correctly.
i not know how create re-index automatically @ intervals.
cron. setup crontab job phone call indexer programme @ ever interval suits situation.
php linux indexing full-text-search sphinx
No comments:
Post a Comment