Re: Doing time sensitive search in solr

2013-10-14 Thread Erick Erickson
When you specify a sort parameter it totally overrides the scoring. You can specify multiple sort criteria, e.g. both live_dt and score. If you specify two sort criteria, any ties in the first are broken by the second and so on through as many sort criteria as you have specified. Note that specify

Re: Doing time sensitive search in solr

2013-10-13 Thread Darniz
Thanks eric i think thats the way to go This leads to one more question. since now that i have two doc with the same content path i want to get distinct content path with max date. 1 /editorial-updates Sept content : Honda is releasing the car this month 2 /editorial-update

Re: Doing time sensitive search in solr

2013-10-07 Thread Erick Erickson
I'd index them as separate documents. Best, Erick On Mon, Oct 7, 2013 at 2:59 PM, Darniz wrote: > Thanks Eric > > Ok if we go by that proposal of copying all date fields into on bag_of_dates > field > > Hence now we have a field and it will look something like this. > > 2013-09-01T00:00:0

Re: Doing time sensitive search in solr

2013-10-07 Thread Darniz
Thanks Eric Ok if we go by that proposal of copying all date fields into on bag_of_dates field Hence now we have a field and it will look something like this. 2013-09-01T00:00:00Z 2013-12-01T00:00:00Z Sept content : Honda is releasing the car this month Dec content : T

Re: Doing time sensitive search in solr

2013-10-07 Thread Erick Erickson
Wait, are you saying you have fields like 2013-12-01T00:00:00Z_entryDate? So you have some wildcard definition in your schema like *_entryDate type="tdate"? If so, I think your model is just wrong and you should have some field(s) that you store dates in. That aside, and assuming you have wildcard

Re: Doing time sensitive search in solr

2013-10-06 Thread Darniz
Thanks Eric. i hope i understood correctly, but my main concern is i have to tie specific content indexed to a specific time range. and make that document come up in search results only for that time. As i have mentioned in my previous example we have multiple data-string structures which makes a

Re: Doing time sensitive search in solr

2013-10-05 Thread Erick Erickson
the copyField directive handles glob patterns as the source, did you try that? Best, Erick On Thu, Oct 3, 2013 at 10:49 PM, Darniz wrote: > i am assuming there is no solution or i have to handle it at index time. > > Any solr experts please > > > > -- > View this message in context: > http://lu

Re: Doing time sensitive search in solr

2013-10-03 Thread Darniz
i am assuming there is no solution or i have to handle it at index time. Any solr experts please -- View this message in context: http://lucene.472066.n3.nabble.com/Doing-time-sensitive-search-in-solr-tp4092273p4093414.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Doing time sensitive search in solr

2013-10-01 Thread Darniz
Thanks Eric When i did solr in 2010 i thought now they might have evolved and allow doing query by providing wildcard in field name, but looks like i have to provide a concrete dynamic field name to query. Anyway will look in the catch all fields. Do you have any examples on how a catch all fiel

Re: Doing time sensitive search in solr

2013-10-01 Thread Erick Erickson
Try it and see :). Dynamic fields are just like regular fields once you index a document that uses one. After that, they should behave just like regular. If you're asking if you can create a query like *_txt:text meaning search all the fields that end with _txt for the word "text", I don't think

Re: Doing time sensitive search in solr

2013-09-30 Thread Darniz
Hello i just wanted to make sure can we query dynamic fields using wildcard well if not then i dont think this solution might work, since i dont know the exact concrete name of the field. -- View this message in context: http://lucene.472066.n3.nabble.com/Doing-time-sensitive-search-in-solr-

Re: Doing time sensitive search in solr

2013-09-30 Thread Darniz
Thanks for the quick answers. i have gone thru the presentation and thats what i was tilting towards using dynamic fields i just want to run down an example so thats its clear about how to approach this issue. Sept content : Honda is releasing the car this month Dec content : Toyota is

Re: Doing time sensitive search in solr

2013-09-27 Thread Alexandre Rafalovitch
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

Re: Doing time sensitive search in solr

2013-09-26 Thread Otis Gospodnetic
Hi Darniz, Just put the date in a separate field and add a range query on that field to your existing query. Otis Solr & ElasticSearch Support http://sematext.com/ On Sep 26, 2013 7:53 PM, "Darniz" wrote: > hello Users, > > i have a requirement where my content should be search based upon time.