The issue with timeallowed is you never know if it will return minimum
amount of docs or not.

I do want docs to be sorted based on date but it seems its not possible
that solr starts searching from recent docs and stops after finding certain
no. of docs...any other tweak?

Thanks


On Saturday, March 8, 2014, Chris Hostetter <hossman_luc...@fucit.org>
wrote:

>
> : Reason: In an index with millions of documents I don't want to know that
> a
> : certain query matched 1 million docs (of course it will take time to
> : calculate that). Why don't just stop looking for more results lets say
> : after it finds 100 docs? Possible??
>
> but if you care about sorting, ie: you want the top 100 documents sorted
> by score, or sorted by date, you still have to "collect" all 1 million
> matches in order to know what the first 100 are.
>
> if you really don't care about sorting, you can use the "timAllowed"
> option to tell the seraching method to do the best job it can in an
> (approximated) limited amount of time, and then pretend that the docs
> collected so far represent the total number of matches...
>
>
> https://cwiki.apache.org/confluence/display/solr/Common+Query+Parameters#CommonQueryParameters-ThetimeAllowedParameter
>
>
> -Hoss
> http://www.lucidworks.com/
>


-- 
Regards,

Salman Akram
Project Manager - Intelligize
NorthBay Solutions
410-G4 Johar Town, Lahore
Off: +92-42-35290152

Cell: +92-302-8495621

Reply via email to