You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by steven crichton <st...@mac.com> on 2013/12/09 15:20:55 UTC

Multi part field

I am trying to implement a ranged field type in a booking system.

The price structure is variable between 2 dates (determined by the property
owner)
So it looks like this 

Date A -> Date B = Price Value

I've been looking through a lot of docs, but so far have not been able to
find how I could possibly implement such an object within SOLR.

the only thing I have so fa thought of is have 2 fields

-DATE PRICE RANGE
- PRICE RANGE VAL

then get the index of the DATE PRICE RANGE array object that matches and
apply that to the PRICE RANGE VAL to get the value.


Any help would be very appreciated on this as it's the make or break of the
new search system for our site just now.



--
View this message in context: http://lucene.472066.n3.nabble.com/Multi-part-field-tp4105685.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Multi part field - EXAMPLE DATA

Posted by steven crichton <st...@mac.com>.
prices: [{start-date: "05-01-2013",end-date: "02-03-2013",price:
760},{start-date: "02-03-2013",end-date: "06-04-2013",price:
800},{start-date: "06-04-2013",end-date: "01-06-2013",price:
1028},{start-date: "01-06-2013",end-date: "29-06-2013",price:
1240},{start-date: "29-06-2013",end-date: "06-07-2013",price:
1340},{start-date: "06-07-2013",end-date: "10-08-2013",price:
1678},{start-date: "10-08-2013",end-date: "24-08-2013",price:
1578},{start-date: "24-08-2013",end-date: "31-08-2013",price:
1340},{start-date: "31-08-2013",end-date: "21-09-2013",price:
1240},{start-date: "21-09-2013",end-date: "19-10-2013",price:
1028},{start-date: "19-10-2013",end-date: "02-11-2013",price:
800},{start-date: "02-11-2013",end-date: "11-01-2014",price: 760}],



--
View this message in context: http://lucene.472066.n3.nabble.com/Multi-part-field-tp4105685p4105686.html
Sent from the Solr - User mailing list archive at Nabble.com.