Re: [Dspace-tech] index init

21 views
Skip to first unread message

Graham Triggs

unread,
Aug 25, 2015, 10:58:23 AM8/25/15
to Jeffrey Trimble, dspac...@lists.sourceforge.net
Jeffrey,

Page 52 is correct. Page 64 is a copy of the old comments from dspace.cfg.

The comments and example in dspace.cfg are also correct, and should have
guided you away from the erroneous information in p64 of the manual ;)

Your configuration should be:

webui.browse.index.1 = dateissued:item:dateissued:date
webui.browse.index.2 = author:metadata:dc.contributor.*:text
webui.browse.index.3 = title:item:title
webui.browse.index.4 = subject:metadata:dc.subject.*:text

G

Jeffrey Trimble wrote:
> Okay, I've followed the conflicting examples for the browse index (see
> p. 52 vs. p. 64 of the May 2008 manual)
> and here's the error I've run into the browse configuration:
>
> Creating browse index
> Exception in thread "main" org.dspace.browse.BrowseException: Browse
> Index confi
> guration is not valid: webui.browse.index.1 =
> dateissued:dc.date.issued:date:ful
> l
> at org.dspace.browse.BrowseIndex.<init>(BrowseIndex.java:220)
> at
> org.dspace.browse.BrowseIndex.getBrowseIndices(BrowseIndex.java:676)
> at org.dspace.browse.IndexBrowse.<init>(IndexBrowse.java:150)
> at org.dspace.browse.IndexBrowse.main(IndexBrowse.java:618)
> Creating search index
>
>
> Any suggestions??
>
> Here's the configuration as I have it:
>
> webui.browse.index.1 = dateissued:dc.date.issued:date:full
> webui.browse.index.2 = author:dc.contributor.*:text:single
> webui.browse.index.3 = title:dc.title:title:full
> webui.browse.index.4 = subject:dc.subject.*:text:single
>
>
> Jeffrey Trimble
> Systems Librarian
> Maag Library
> Youngstown State University
> 330-941-2483 (Office)
> jtri...@cc.ysu.edu <mailto:jtri...@cc.ysu.edu>
> http://www.maag.ysu.edu
> http://digital.maag.ysu.edu
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> DSpace-tech mailing list
> DSpac...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

This email has been scanned by Postini.
For more information please visit http://www.postini.com


Jeffrey Trimble

unread,
Aug 25, 2015, 11:00:16 AM8/25/15
to dspac...@lists.sourceforge.net
Okay, I've followed the conflicting examples for the browse index  (see p. 52 vs. p. 64 of the May 2008 manual)
and here's the error I've run into the browse configuration:

Creating browse index
Exception in thread "main" org.dspace.browse.BrowseException: Browse Index confi
guration is not valid: webui.browse.index.1 = dateissued:dc.date.issued:date:ful
l
        at org.dspace.browse.BrowseIndex.<init>(BrowseIndex.java:220)
        at org.dspace.browse.BrowseIndex.getBrowseIndices(BrowseIndex.java:676)
        at org.dspace.browse.IndexBrowse.<init>(IndexBrowse.java:150)
        at org.dspace.browse.IndexBrowse.main(IndexBrowse.java:618)
Creating search index


Any suggestions??

Here's the configuration as I have it:

webui.browse.index.1 = dateissued:dc.date.issued:date:full
webui.browse.index.2 = author:dc.contributor.*:text:single
webui.browse.index.3 = title:dc.title:title:full
webui.browse.index.4 = subject:dc.subject.*:text:single


Jeffrey Trimble
Systems Librarian
Maag Library
Youngstown State University
330-941-2483 (Office)

Webshet, Sisay (ILRI)

unread,
Aug 25, 2015, 4:44:53 PM8/25/15
to dspac...@lists.sourceforge.net
Hi Everybody
After I did mvn -U clean Pakage and ant update for dspace .cfg &
inputform.xml
I just run index init but this error comes


Anybody helps me

Exception: Unknown format version: -9
org.apache.lucene.index.CorruptIndexException: Unknown format version:
-9
at
org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:211)
at
org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:16
8)
at
org.apache.lucene.index.IndexWriter.init(IndexWriter.java:722)
at
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:452)
at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:781)
at org.dspace.search.DSIndexer.createIndex(DSIndexer.java:425)
at org.dspace.search.DSIndexer.main(DSIndexer.java:539)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:212)
swebshet@ilrivm2:~$ sudo /home/dspace/bin/dspace index-update
swebshet@ilrivm2:~$ sudo /home/dspace/bin/dspace index-init
Exception: Unknown format version: -9
org.apache.lucene.index.CorruptIndexException: Unknown format version:
-9
at
org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:211)
at
org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:16
8)
at
org.apache.lucene.index.IndexWriter.init(IndexWriter.java:722)
at
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:452)
at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:781)
at org.dspace.search.DSIndexer.createIndex(DSIndexer.java:425)
at org.dspace.search.DSIndexer.main(DSIndexer.java:539)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:212)
swebshet@ilrivm2:~$ sudo /home/dspace/bin/dspace index-init -v
Exception: Unknown format version: -9
org.apache.lucene.index.CorruptIndexException: Unknown format version:
-9
at
org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:211)
at
org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:16
8)
at
org.apache.lucene.index.IndexWriter.init(IndexWriter.java:722)
at
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:452)
at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:781)
at org.dspace.search.DSIndexer.createIndex(DSIndexer.java:425)
at org.dspace.search.DSIndexer.main(DSIndexer.java:539)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:212)****
*****

Reply all
Reply to author
Forward
0 new messages