Closed szymon33 closed 7 years ago
min_word_size
is meant as a configuration option to prevent abuse. With min_word_size
set to 1, a query of U
would match the letter U
on it's own, but not Uniwe
.
A prefix query, ^Uniwe
, will match Uniwersalna
even at the default min_word_size
of 3.
Thank you very much @dougal for your prompt reply. You are right. But how about searching inside text with search string i. ex. 'sal' ?
No problem.
There is no support for mid-atom matching.
The index is broken up into groups of atoms, in directories by their prefix. It is only efficient to search for either entire atoms, or prefixes.
That is exactly what I need. Thanks and wish you a Happy New Year!
I use in my app:
implemented to model
Product.rb
byacts_as_indexed fields: [:name]
Assuming the follwoing product name "Uniwersalna pokrywka Stoneline"
The following expression will find the record:
Below expression will NOT find anything. Just one character less though.
why?