Hi Ravi, You need to change your schema & put all these fields under same type to get the output. And as per my experience with elasticsearch ther won't be any problem with large the number of fields.
Regards Bharvi On Monday, 1 September 2014 12:25:36 UTC+5:30, ravi kumar wrote: > > Hi david , > > Your query is working but thats not what I want. What i want is to return > record of laptop that with laptopModelId "Vostro" AND sellAdState should be > "Karnataka". > > laptopModelId and sellAdState will always be under different _types. > > Shall I change my data schema and make it in under same _type ? > > I have around 70-80 fields. will it be efficient to put all these fields > inside same _type so that > > laptopModelId:"Vostro" AND sellAdState:"Karnataka" > > can be executed? > > or Is there any other solution to my previous given data format? > > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/757959af-81c1-423b-8526-e06037113120%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
