String type is unanalyzed. So what you put in the index better be exactly what you query for, capitalization, spaces (internal and leading and trailing etc). So you are NOT searching the exact same thing, the spaces are different. String type is quite literal, and exact means exact.
You really have several choices here. 1> pre-process at both index and query time to remove spaces. 2> use something other than "string" type. See the admin/analysis page in order to get an idea what is actually indexed and searched. Best Erick On Thu, Jan 6, 2011 at 3:36 AM, dhanesh <dhan...@hifx.net> wrote: > On 1/6/2011 1:37 PM, Grijesh.singh wrote: > >> First you have to check that your indexing process can cause of removing >> the >> whitespace >> >> ----- >> Grijesh >> > While indexing to server I added the category as 'Computer / IT', but when > I search with same keyword I am not getting any result. > But when I changed the category 'Computer/IT' (note that I removed the > space from the both sides of forward slash). and again I indexed to > solar.This time I got the result. > But my requirement is to index the category as 'Computer / IT' (with space > in both side of /) > dhanesh > > >