On Sat, Jun 11, 2011 at 9:52 PM, Pawan Darira <pawan.dar...@gmail.com> wrote: > sorry for the inconvenience. actually i was trying the solution suggested in > this mail thread. As mentioned in 1st mail, > > I am trying to index 2 fields with multiple values. BUT, it is only putting > 1 value for each & ignoring rest of the values after comma(,). I am fetching > query through DIH. It works fine if i have only 1 value each of the 2 fields > > E.g. Field1 - 150,178,461,151,310,306,305,179,137,162 > & Field2 - Chandigarh,Gurgaon,New > Delhi,Ahmedabad,Rajkot,Surat,Mumbai,Nagpur,Pune,India - Others > > > Schema.xml > > > <field name="city_type" type="text" indexed="true" stored="true"/> > <field name="city_desc" type="text" indexed="true" stored="true"/> [...]
You also need to add a multiValued="true" attribute (please note the case). > But in my index, it is showing only "150" in Field1 & "Gurgaon" in Field2. > Then, as suggested in mail thread, i tried to use "split-by ," for field1 & > field2 in schema.xml. It did not show me the error and results were also the > same as it was before using "split by". Along with split-by i mentioned the > attribute as "multivalued=true". [...] This is still not making much sense. What do you mean by using "split by"? Please make your schema.xml, and DIH configuration file available, ideally by putting them on pastebin.com, and listing the links here (please be careful to obfuscate sensitive data like username, password, etc., that you might be using to access the data source). Regards, Gora