Sphinx search entire field but not begin/end -


i trying match field contains words in phrase far have been able use ^ , $ it. instance

^word1 word2$ 

returns record named "word1 word2" not "word3 word1 word2".

however want in fact "word2 word1"

so how use ^ , $ mean start , end of field forces words put in in particular order. search "word2 word1" gets more complex (3+ word terms, etc)

is there way tell sphinx in entire field in order. in other words want "word1 word2" match "word1 word2" , "word2 word1" not "word3 word2 word1"

well can use near/ or proximity operator require words ajoining(but in order), there isnt way require 'entire field'.

closest use index_field_lengths, field len can use in custom ranking expression. if multiple fields in index tricky implement.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -