Posted on 05/10/2016 10:12:54
Hi Søren
There are lots of 'scary' stories on enabling double wildcards on Lucene out there with performance 20-40 times more slow, just google it. It will probably not be a big problem for 9 out of 10 implementations because of limited index sizes, but then we have customers with 700.000 products adding 10 criterias using this new approach and THEN....! (site will crash, has been tested).
Also, not even Google supports searching for *something - as it makes little sense.
@1: Contains in this connection does not mean "Each term in this field contains part of the word being searched for" - it means "this text field contains the word being searched". Renaming it to Startswith would be wrong for all other fields than fields with just one word in a string. If you have a name field with the value "Søren Heide Larsen", searching it with a criteria "Name StartsWith 'la'" would return a result which you would not expect where as the name starts with 'Sø'...
ANYWAYS. I will consider a "Bad performing term double contains" criteria for the next service release... With warnings.
@2: Will be happy to that.
BR Nicolai