by
KK » Wed Jun 10, 2015 1:50 pm
I'll quote form our documentation (
http://www.couchcms.com/docs/concepts/using-search.html) -
Couch uses MySQL's Fulltext search for this purpose. An advantage of this is that Couch can assign different weightages to words apprearing at different places in a page and fetch back pages ordered according to their calculated relevance.
Thus a page that contains the searched word in its title will be considered more relavant than another page that has the same word somewhere in an editable region. Similarly a page that contains the searched word multiple times is considered more relevant to the one containing it only once.
Fulltext search also has a few drawbacks that you need to be aware of -
It cannot be used to search for words that are less than four characters in length (considers them unimportant).
Also fulltext search does not match partial words.
So basically, the search offered by Couch is a simple veneer around what MySQL offers.
It is not a very advanced kind of search but suffices for most websites.
For your case, I don't think it'll cut ice though.
I suggest you please take a look at more advanced solutions e.g. sphinx or sphider.