On Fri, 26 Nov 2010, Cornelia Plott wrote:
> The collection is defined via dbquery like 'collection:THESIS'.
> After running
> $ bibindex -u admin -w collection -f250000 -R
> $ webcoll -u admin -f
> and restarting Apache the webfronted shows 0 records and all collections are 
> empty?!

Does search_pattern() CLI query find your records well?  Here is an
example for the demo site:

   $ python -c "from invenio.search_engine import search_pattern; \
     print search_pattern(p='POETRY', f='collection')"
   intbitset([75, 76, 104])

If you find good record IDs, then the problem is not with the collection
index, but with the collection tree and/or collection definitions.

If you don't find your records, then try a direct MARC search:

   $ python -c "from invenio.search_engine import search_pattern; \
     print search_pattern(p='POETRY', f='980__a')"

If the latter succeeds, but not the former, then the problem is with the
definition of the logical field `collection'.  Just some wild-guess
debugging hints.

> imho the webcoll status sounds good:
>
> Last updates:
> Collection table last updated: 2010-11-26 14:57:16
> Collection cache last updated: 2010-11-26 14:57:16

What about `Collection Status' page?  Is everything `OK' there?
<http://localhost/admin/websearch/websearchadmin.py?colID=1&ln=en&mtype=perform_checkcollectionstatus>

> 2010-11-18 18:55:22 --> idxPHRASE13F contains 112390 words from 97342 records
> 2010-11-18 18:55:22 --> EMERGENCY: idxPHRASE13F needs to repair 43910
> of 97342 index records

Anything interesting in `/opt/invenio/var/log/bibsched_task_*.err' or in
`/opt/invenio/var/log/invenio.err' files in this respect?

Also, what Invenio version are you using, and does your database run
well in UTF-8 mode?  For example:

  $ /opt/invenio/bin/inveniocfg --detect-system-details
  >>> Going to detect system details...
  * Hostname: pcuds33
  * Invenio version: 0.99.2.1484-875f2
  * Python version: 2.6.6 (r266:84292, Oct  9 2010, 11:40:09) [GCC 4.4.5]
  * Apache version: Apache/2.2.16 (Debian) [/usr/sbin/apache2]
  * MySQLdb version: 1.2.2
  * MySQL version:
      - version: 5.1.49-2
      - character_set_client: utf8
      - character_set_connection: utf8
      - character_set_database: utf8
      - character_set_results: utf8
      - character_set_server: latin1
      - character_set_system: utf8
      - collation_connection: utf8_general_ci
      - collation_database: utf8_general_ci
      - collation_server: latin1_swedish_ci
  >>> System details detected successfully.
  
Best regards
-- 
Tibor Simko

Reply via email to