How to index and search multiple value under single field.
e.g. say i have a field processor which might have i3,i5,i7 or i3 or i3,i5 values. now imagine a laptop data as below:
data1:
name= laptop name
price = laptop price
processor=core duo
data2:
name= laptop name
price = laptop price
processor=i3,i5
data3:
name= laptop name
price = laptop price
processor=i3,i5,i7
Now,
if a user want to search only i3 and i5 processor it should show data2 & data3 only.
So my question is how should i index and search the lucene. I am using lucene 4.4.
I checked this but could not understand as no example was there. An example will be good for me.