project-cdsware-users@cern.ch archives


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: broken collection identifier


  • From: Tibor Simko <tibor.simko@xxxxxxx>
  • Subject: Re: broken collection identifier
  • Date: Thu, 28 Feb 2008 16:44:09 +0100

Hi Devin:

On Thu, 28 Feb 2008, Devin Bougie wrote:

>>  Do you find it if you do:
>>   $ python -c "from invenio.search_engine import search_pattern; >>               print search_pattern(p='foo')"
>> where foo is your collection definition?
>
> Unless I'm doing something wrong, all I get is a bunch of 0's:
> [dab66@lnx248 ~]# python -c "from invenio.search_engine import
> search_pattern; print search_pattern(p='ARTICLE')"

The query should read 'collection:ARTICLE' to match exactly your
collection definition.  You can also transform HitSet to a more
readable list; an example from an Invenio 0.92.1 demo site:

  $ python -c "from invenio.search_engine import search_pattern; print search_pattern(p='collection:ARTICLE').tolist()"
  [17, 18, 66, 67, 68, 69, 70, 71, 72, 73, 74]

Is your record #1877 well found using this query?

Best regards
--
Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>