Forum for discussing general topics related to Couch.
5 posts Page 1 of 1
As KK has made a huge improvement at shorten the search length from 4 to less than 4, as you can refer this post:http://www.couchcms.com/forum/viewtopic.php?f=2&t=9789.

Any chance anyone can provide any solution for partial text? I tried to use "swiftype" search in my project, it's actually quite a cool tools for search solution. But recently they removed the free plan and most of my client is not going for paid plan.

Partial text search is getting important in my project, as it includes many product codes, and the codes are pretty similar, I can't expect my user to memorized every one of them, thus, I want them to just need to enter 4 out of 6 code number, and let the system display all similar items.

I search for this partial text mysql in google, it seems like the logic is separate a text into a few sections, ex: apple - "app", "ppl", "ple", then the system will do the searching based on the separated sections. Is it even possible to apply in couch cms?
nsy wrote: I search for this partial text mysql in google, it seems like the logic is separate a text into a few sections, ex: apple - "app", "ppl", "ple", then the system will do the searching based on the separated sections. Is it even possible to apply in couch cms?

If the site is not huge I would do prefetched values https://twitter.github.io/typeahead.js/examples/

Try input partial text and you'll see how cool it is for product names, references, tags and so on. I guess, this is not for a full-text search.

If your users need only to 'jump' to certain parts of website, it will help. Those certain parts need to be 'marked' somehow in order to build list with links.
hi,

as an alternative I use the script I posted here http://www.couchcms.com/forum/viewtopic.php?f=4&t=9403

I must say that I'm in the middle of a change by using vue.js for this kind of stuff.
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
actually, I already included autocomplete in search function , like https://twitter.github.io/typeahead.js/examples/.

It just I am curious that is any of other couch users can actually make it work.

my idea is, maybe we can extract something like "k_page_title" into php or Json files, like we did in autocomplete search function, the title list is already generated in this php/json file. And we will write some code to separate text into few sections, then the system will match the items base on the partial words/sections.

It just an idea, not sure it can work or not.... maybe I just thought this too easy...
And we will write some code to separate text into few sections, then the system will match the items base on the partial words/sections.

Need more examples ;) Are those sections names of templates?
With k_page_title typeahead works just fine, as with any other prefetched data. It will not include regular text from the pages though..
5 posts Page 1 of 1
cron