If I'm not mistaken, you should index name as field type "string" -
right now you are probably using "text" so it is tokenizing on the
Uppercase characters. If you use "string" type this shouldn't
happen. You could use a copyField to make a separate "name_string"
field so that you can do both #1 and #2, depending on the circumstance.
--
Steve
On Aug 20, 2009, at 10:26 PM, bhaskar chandrasekar wrote:
Hi,
Can some one help me with the below situation?
To elaborate more on this.
Assuming i give "BHASKAR" as input string.
Scenario 1: It should give me search results pertaining to BHASKAR
only.
Select * from MASTER where name ="Bhaskar";
Example:It should not display search results as "ChandarBhaskar" or
"BhaskarC".
Should display Bhaskar only.
Scenario 2:
Select * from MASTER where name like "%BHASKAR%";
It should display records containing the word BHASKAR
Ex:
Bhaskar
ChandarBhaskar
BhaskarC
Bhaskarabc
How to achieve Scenario 1 in Solr ?.
Thanks
Bhaskar