Why the fck is the FW

-----Original Message-----
From: Harshvardhan Ojha [mailto:harshvardhan.o...@makemytrip.com] 
Sent: 08 January 2013 16:51
To: solr-user@lucene.apache.org
Subject: FW: How can i multiply documents after DIH?

All,

Looking into a finding solution for Hotel searches based on the below criteria's

1.City/Hotel
2.Data Range
3.Persons

We have created documents which contains all the basic needed information 
inclusive of per day rates. The document looks like the below 
        
=============================================

<doc>
 <str name="citycode">SHL</str>
 <date name="startdate">2013-01-06T18:30:00Z</date>
 <date name="enddate">2013-01-06T18:30:00Z</date>
 <str name="id">2008090516</str>
<double name="tariff">2400.0</double>
 <double name="tax">600.0</double>
 <long name="_version_">1423509483572690944</long>
</doc>


=============================================

My search requirement is like

q=city AND startdate:[2013-01-06 TO 2013-01-08]

or

q=id: 2008090516 AND startdate:[2013-01-06 TO 2013-01-08]

and this combination for dates can be anything from daterange:[x TO y].

I have close to a 100K combinations to start with based on 
city,date-ranges,number of nights(days of stay) . I am looking at options to 
create search responses or even using this set of documents as an input source 
for them 

e.g: Running some Map-Reduce jobs to get all the 100K search responses and 
putting into the store or cache.  

Looking for suggestions cum options. 

Regards
Harshvardhan Ojha


Reply via email to