How to index and search for multiple values ββin one field.
eg. let's say I have a processor field that can have values i3, i5, i7 or i3 or i3, i5 . Now imagine the laptop data as shown 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 the user wants to search only the i3 and i5 processor, he should show only data2 and data3.
So my question is: how should I index and search for lucene. I am using lucene 4.4.
I checked this one , but could not understand, since not a single example was there. For me this will be a good example.
source share