Hi Irshad,

So, assuming that each vendor information is one solr document, you will
have information regarding the vendors open-close hours correct? You should
be indexing this content in one of the fields, isn't it? If yes, then you
should try something as explained:
When the user searches, *capture the current time and search across this
field by boosting it with high weightage.  "date-time" field type can be
helpful with range queries. *




On Fri, Jan 22, 2016 at 3:44 PM, irshad siddiqui <irshad.s...@gmail.com>
wrote:

> Hi ,
> Thanks prateek for your reply.
>
> My query is i have multiple opening and closing hours, within the same day.
> how to manage index and search query to get all opening  first than close
>
> i don't think below url will solve my problem.
> https://wiki.apache.org/solr/SpatialForTimeDurations
>
> please suggest
>
> Regards,
> Irshad
>
>
> On Fri, Jan 22, 2016 at 2:30 PM, Prateek Jain J <
> prateek.j.j...@ericsson.com
> > wrote:
>
> >
> > According to me this is what you are looking for
> >
> > https://wiki.apache.org/solr/QueryElevationComponent
> >
> >
> > Regards,
> > Prateek Jain
> > Team: Totoro
> > Mobile: +353 894 391716
> >
> >
> > -----Original Message-----
> > From: irshad siddiqui [mailto:irshad.s...@gmail.com]
> > Sent: 22 January 2016 07:32 AM
> > To: solr-user@lucene.apache.org
> > Subject: Close and open vendor sorting
> >
> > Hi,
> >
> > I am using solr 5.1 in my search . my search are working fine
> >
> > today i got one new requirement that show first all open vendor and then
> > close vendor.
> >
> > All vendor have different time oping and closing for a day
> >
> > Example:*"Royal China"*  vendor on Friday have 3 time slot for opening
> and
> > closing.
> >
> >
> >    - 11am to 2 pm
> >    - 5pm to 8pm
> >    - 10pm to 11:30pm
> >
> >
> >
> > Kindly let me know how to show first open vendor and than close vendor in
> > single search query. please help
> >
> > Thanks
> >
> > Regards,
> > Irshad
> >
>

Reply via email to