1

Closed

a question

description

test the demo

doc.Add(new Field("name", p.Name, Field.Store.YES, Field.Index.ANALYZED)); //it's ok!!!
when

doc.Add(new Field("Name", p.Name, Field.Store.YES, Field.Index.ANALYZED)); // no result

why? i just change "name" to "Name"
Closed Feb 13, 2012 at 2:03 PM by retroviz

comments

retroviz wrote Feb 13, 2012 at 2:02 PM

Field names in queries are case sensitive but you need to ensure both indexing and searching use the same casing. I would recommend using lower case at all time.