vendredi 15 juillet 2016

Trim whitespace and Ignore Hash sign in Solr

I am new to Solr and I am facing problem to "trim white spaces" and in "ignoring hash sign".

For example, If I have following results in my database:

"Red Blue abc",  
"abc RedBlue",  
"Red abc Blue",  
"Red abc",  
"Blue abc" 

Now if search for "RedBlue" i get all of the above but if search for "Red Blue", i am not able to retrieve all of the above results. Some are being missed. Same problem with the hash sign.If I search for "Red#Blue", I am facing the same problem.

Thanks in Advance.

Aucun commentaire:

Enregistrer un commentaire