I'm getting some feedback that the searching in my app is a bit wonky.

I've tested it out and I also am getting some strange results.

For example, if I have two documents, one with 'apple' and the other with 
'application', if I search for 'apple', I'm also getting back the record 
that has 'application' in it. 

I understand that it's probably the stemmer which is truncating the 'le' 
bit from the end of 'apple' before it does its search, so that's why 
'application' is also being returned. 

Can I turn that behaviour off?

I still want to have prefixed searches, so if the user does search for 
'app', then 'apple' and 'application' should be returned. But not when they 
search for 'apple'. Only 'apple' should be returned.

By the way, in my search term, I automatically append a * to the end of the 
search term to support prefixed matches. So technically when it does its 
search for 'apple', I'm passing in 'apple*'. Not sure if that makes a 
difference, but it's definitely the same technique used in my previous raw 
SQLite version of my app, but now has this different behaviour due to the 
stemmers.


Thanks,

Brendan

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/064851e3-987a-4eac-bffc-2b07fd109c85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to