mysql - Can Sphinx match against terms or phrases that are similar to the provided search params? -


i've got mysql free-text search , running in rails app.

if search 'regular guitar cable' 'guitar' , 'cable', want.

now i've installed sphinx , thinking-sphinx gem, , i've found search 'regular guitar cable' doesn't return results @ all. what's worse if search 'guitars' nothing! instead i'm finding have search 'guitar' instead i.e. need enter exact term.

this problematic because few of users search 'guitar' , instead it's more search 'red guitar' or 'cheap guitar' , need sphinx bit smarter.

how can make want without having add every single adjective in english dictionary stop-word file

the following resolved problem!

product.search "\"#{search_text}\"/1" 

the /1 @ end makes work, , it's called quorum operator.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -