It's entirely unclear what you mean by "position".

bq:  where for "make and model" his
first result comes

Comes in what? The search result list? Some
a-priori ordering of all the cars that has
nothing to do with this search? The results
list of everyone's cars that have the same
make and model? If this latter, what good
is this doing the user? On what criteria
are the make/model combination ordered so
that the position of the user's car has
meaning?

 Some concrete examples would help I think.

Best,
Erick


On Wed, Sep 2, 2015 at 9:42 PM, Shayan Haque <m...@shyyawn.com> wrote:
> Thanks for the reply Erick.
>
> How do I get the position? I am searching on e.g. car model and make, and I
> want to show on which position the members's first car falls for that
> specific car model and make. So I tell solr, get listing for the cars with
> the model and make. I want from that result, if the member's first result
> is 208th document, could be 2008th.
>
> Well the web interface that I need to implement is different though. In
> actual the member will see all his cars with where for "make and model" his
> first result comes. If I get the above thing to work, I'd basically search
> solr for each of his car's make and model. It will be 12 or 24 cars per
> page, so it's not the best solution but still better if solr can give the
> position. Alternate would be to I have to loop all the results pr solr
> search, that would be even worse, 12 * 10000+ results. I may even have
> limit the search to 1000 positions per make and model or some other cap and
> show user not the exact position if not found in the 1000 result.
>
>
> Maybe I am not thinking in the right direction using Solr for this. Can't
> think how I'd get the position any other way as the site's public pages use
> solr for listing.
>
>
>
> -
> Regards,
> Shayan
>
>
>
>
>
>
>
>
>
>
> On Thu, Sep 3, 2015 at 12:08 PM Erick Erickson <erickerick...@gmail.com>
> wrote:
>
>> Well, you have access to the start parameter, isn't it just
>> start+(ordinal position in the page)?
>>
>> Best,
>> Erick
>>
>> On Wed, Sep 2, 2015 at 7:01 PM, Shayan Haque <m...@shyyawn.com> wrote:
>> > Hi,
>> >
>> > I need to get a document position within a search result for a specific
>> > member, to show them where there result lie for a particular set of
>> > filters... I tried using a Solr-Ranking plugin but its outdated, version
>> > 3.5 compatible. Is there some other way?
>> > Ordinal ranking or any other thing.. the version I am using is solr 4.7.
>> > The last resort would be counting in the app.. but the issue is that
>> would
>> > be extensive... it would mean running a Solr request for each listed item
>> > to get its position by looping through the results till X page or X limit
>> > ... can't traverse all data.
>> >
>> > Help plz.
>> >
>> >
>> > -Shayan
>>

Reply via email to