How fast does it need to be?
I've done this sort of things for relevance evaluation with a driver in Python.
Send the query, request 10 or 100 hits in JSON. Request only the URL field (fl
parameter). Iterate through them until the URL matches. If it doesn't match,
request more. Print the number
It wouldn't be too hard to write a Solr Plugin that take a param docId together
with a query and return the position of that doc within the result list for
that query. You will still need to deal with the performance though. For
example, if the doc ranks at one millionth, the plugin still needs
Basically this is for analytical purposes, essentially we want to help people
(which sites we’ve indexed in our app) to find out for which particular terms
(in theory related with their domain) they are bad positioned in our index.
Initially we’re starting with this basic “position per term” but
Jorge, i don't think that solr provide this functionality, you have to
iterate and solr is very fast in this, you can create a script for that
which search for pattern(term) and parse(request) the records until get the
record of that desired url, i don't thing 1/3 seconds time to find out is
more.
Oh, I see what you are trying to do, you were confusing :)
To get the exact position of a particular document in the ranked list, you will
need to loop through the whole list, as that's exactly what Solr has to do to
get to the that document.
However, you could do some optimization with the sc
Yes, but I’m looking for the position of the url field of interest in the
response of solr. Solr matches the terms against the collection of documents
and returns sorted list by score, what I’m trying to do is get the position of
the a specific id in this sorted response. The response could be s
Solr is designed to do exactly this very, very fast. So there isn't a faster
way to do it. But you only need to fetch the URL field. You can ignore
everything else.
wunder
On Jun 23, 2014, at 9:32 PM, Jorge Luis Betancourt Gonzalez
wrote:
> Basically given a few search terms (query) the idea
Basically given a few search terms (query) the idea is to know given one or
more terms in which position your website is located for those specific terms.
On Jun 24, 2014, at 12:12 AM, Aman Tandon wrote:
> What kind of search criteria, could you please explain
>
> With Regards
> Aman Tandon
>
What kind of search criteria, could you please explain
With Regards
Aman Tandon
On Tue, Jun 24, 2014 at 4:30 AM, Jorge Luis Betancourt Gonzalez <
jlbetanco...@uci.cu> wrote:
> I’m using Solr for an analytic use case, one of the requirements is
> basically given a search query get the position o
I’m using Solr for an analytic use case, one of the requirements is basically
given a search query get the position of the first hit. I’m indexing web pages,
so given a search criteria the client want’s to know the position (first
occurrence) of his webpage in the result set (if it appears at al
10 matches
Mail list logo