How about creating schema with temperature, humidity & a day field (and
other fields you may have like zipcode/city/country etc). Put day="next" or
day="previous" and during query use fq (filter query) to have
fq=day:previous or fq=day:next.

Thanks,
Susheel

On Wed, Jun 8, 2016 at 2:46 PM, Aniruddh Sharma <asharma...@gmail.com>
wrote:

> Hi
>
> Request help
>
> I have following XML data to start with
>
> <Weather>
>    <previousDay>
>       <temperature>13</temp>
>       <humidity>50</humidity>
>     </previousDay>
>    <nextDay>
>       <temperature>15</temp>
>       <humidity>60</humidity>
>     </nextDay>
> </Weather>
>
>
> Please notice it has "previousDay" and "nextDay" and both of them contains
> details of same field "temperature" and "humidity"
>
> What is best way to create schema for it , where I could query for
> temperature on previousDay as well as on currentDay
>
>
>
> Thanks and Regards
> Aniruddh
>

Reply via email to