Hi Alexander,
Some info about this can be found here:
<http://invenio-demo.cern.ch/help/hacking/search-engine-api>
The search engine internals are here:
<http://invenio-demo.cern.ch/help/hacking/search-engine-internals>
In a few words the difference is that perform_request_search() is the
high-level API (same results as the ones displayed) while
search_pattern() is mid-level API (does not know about restrictions,
collections, various washing of parameters, etc..).
Cheers,
Ludmila
On 02/20/2013 02:29 PM, Alexander Wagner wrote:
Hi!
Could someone give me a helping hand concerning the differences between
perform_request_search() and search_pattern()?
For some evaluation method I used both, and as soon as I understood
intbitsets (thanks to Stefans sample code ;) I found search_pattern()
quite convenient.
However, I got a bit a strange answer in some cases and cross checked.
intbitset(perform_request_search(p=query)).difference(search_pattern(p=query)
did not yield an empty set as I thought, at least not if query gets a
bit more complex. So I wonder what's going on.
pydoc refert to something called "Search Internals document". Where is
this one supposed to live? Probably it already contains the answer.
--
Kind regards,
Alexander Wagner
Subject Specialist
Central Library
52425 Juelich
mail : [email protected]
phone: +49 2461 61-1586
Fax : +49 2461 61-6103
www.fz-juelich.de/zb/DE/zb-fi
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
--
Ludmila Marian ** CERN Document Server ** <http://cds.cern.ch/>