#686: author-count search term (ac)
--------------------------+----------------------------
Reporter: hoc | Owner:
Type: enhancement | Status: new
Priority: major | Milestone:
Component: WebSearch | Version:
Resolution: | Keywords: INSPIRE syntax
--------------------------+----------------------------
Comment (by jblayloc):
As I see it, this can be provided two ways:
- at search time, we can calculate it, roughly by:
{{{
# &word used to indicate a conceptual eval which in reality is an if tree
on expected values
result = HitSet()
for hit in hitset:
if count_authors(hit) &operator &value:
result += hit
}}}
- at index time, we can calculate it and store it in an index:
{{{
add_to_ac_index(count_authors(text)) # or similar
}}}
...and then at search time dereference against the index:
{{{
find ac 5+
# is translated into
authorcount:5->99999
}}}
The second option seems a lot easier both in development effort and search
speed. Sadly, I don't know much about how index construction works, or
about gitting data into an index retroactively. So this will take a
little more investigation on my part I guess.
Tibor, this feels like it should be easy. Is that accurate?
--
Ticket URL: <http://invenio-software.org/ticket/686#comment:1>
Invenio <http://invenio-software.org>