If your different strings have different semantics (date, etc), you may need to split your entries based on that semantics.
Either have the 'entity' represent one 'string-date' structure or have additional field that represents content searchable during that specific period and only have one with all the strings as stored (if you absolutely need it). Search for Gilt's presentation on Solr, they deal with some of the similar issues (flash sales). Regards, Alex. Personal website: http://www.outerthoughts.com/ LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch - Time is the quality of nature that keeps events from happening all at once. Lately, it doesn't seem to be working. (Anonymous - via GTD book) On Fri, Sep 27, 2013 at 6:52 AM, Darniz <rnizamud...@edmunds.com> wrote: > hello Users, > > i have a requirement where my content should be search based upon time. For > example below is our content in our cms. > <entry start-date=1-sept-2013> > Sept content : Honda is releasing the car this month > <entry> > > <entry start-date=1-dec-2013> > Dec content : Toyota is releasing the car this month > <entry> > > On the website based upon time we display the content. On the solr side, > until now we were indexing all entries element in Solr in text field. Now > after we introduced time sensitive information in our cms, i need to know > if > someone queries for word "Toyota" it should NOT come up in my search > results > since that content is going live in dec. > > The solr text field looks something like > <arr name="text"> > <str>Honda is releasing the car this month</str> > <str>Toyota is releasing this month</str> > </arr> > > is there a way we can search the text field or append any meta data to the > text field based on date. > > i hope i have made the issue clear. i kind of don't agree with this kind of > practice but our requirement is pretty peculiar since we don't want to > reindex data again and again. > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Doing-time-sensitive-search-in-solr-tp4092273.html > Sent from the Solr - User mailing list archive at Nabble.com. >