Yes, I think it will make the current search function become really really useful...
example, I have product terms that included something like "max" "mix" "ply", terms like this...
Perhaps we can get it to work but, in case you did not notice, the given solution will *not* work for words *less* than 3 characters in length - it will only add words of *exactly* the length of 3 to the current search setup.
Is this mean that it can search the word that more equal and more than 3? I noticed in the php code, it has set the limitation character to "3", is it possible to make it 2? It will be easier to let the user search for 2 characters' product code.
But if you think is no possible, then I think 3 characters solution will just fine for now.
Here is my suggestion for couch search function, after you complete with the search code, the couch user can adjust the character length, maybe at "config" file, something like "search_min_length=2". by the way, just a suggestion....
Another problem, how to let it show message, when the character is less than 3 or 4? For now, I am using:
- Code: Select all
<h3>No pages found</h3>
I want it to display message "The product code is too short".