Hi All,

I've just started digging into this as well. Its really unfortunate to only
get "relevance" results for searches.

In digging in, I've spit out the stack trace, and its telling me a few
things.
1) Do we have "bad" metadata for dc.date.issued?
-- (I've already harassed my content folks to have them review all our
metadata) ;)

2) Are we doing the comparison of dates incorrectly. The error below says
is the value of "dateissued" an INT.
-- I've been reading this thread, which is very similar:
http://www.gossamer-threads.com/lists/lucene/java-user/109530


2012-01-31 17:47:02,475 ERROR org.dspace.search.DSQuery @ Unable to use
speficied sort option: dateissued
2012-01-31 17:47:02,475 ERROR org.dspace.search.DSQuery @ Invalid shift
value in prefixCoded string (is encoded value really an INT?)
2012-01-31 17:47:02,476 ERROR org.dspace.search.DSQuery @
java.lang.NumberFormatException: Invalid shift value in prefixCoded string
(is encoded value really an INT?)
 at
org.apache.lucene.util.NumericUtils.prefixCodedToInt(NumericUtils.java:233)
at org.apache.lucene.search.FieldCache$7.parseInt(FieldCache.java:237)
 at
org.apache.lucene.search.FieldCacheImpl$IntCache.createValue(FieldCacheImpl.java:457)
at
org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:224)
 at org.apache.lucene.search.FieldCacheImpl.getInts(FieldCacheImpl.java:430)
at
org.apache.lucene.search.FieldCacheImpl$IntCache.createValue(FieldCacheImpl.java:447)
 at
org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:224)
at org.apache.lucene.search.FieldCacheImpl.getInts(FieldCacheImpl.java:430)
 at
org.apache.lucene.search.FieldComparator$IntComparator.setNextReader(FieldComparator.java:332)
at
org.apache.lucene.search.TopFieldCollector$MultiComparatorNonScoringCollector.setNextReader(TopFieldCollector.java:435)
 at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:249)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:240)
 at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:181)
at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:113)
 at org.apache.lucene.search.Hits.<init>(Hits.java:90)
at org.apache.lucene.search.Searcher.search(Searcher.java:63)
 at org.dspace.search.DSQuery.doQuery(DSQuery.java:151)
at org.dspace.search.DSQuery.doQuery(DSQuery.java:309)
 at
org.dspace.app.xmlui.aspect.artifactbrowser.AbstractSearch.performSearch(AbstractSearch.java:438)


Just for fun, I enabled Discovery on our development machines, and sorting
by date issued works perfectly in a search. So, a quick-fix would be to
switch to using discovery. But, none-the-less, I look forward to getting a
resolution to this issue.


Peter Dietz



On Wed, Feb 1, 2012 at 7:15 AM, Cristian Romanescu <
[email protected]> wrote:

> Greetings,
>
> Have you tried to look into the lucene indexes with Luke tool?
> (http://www.getopt.org/luke/).
> We are using:
>      search.index.13 = dc_date:dc.date.issued:date
> to filter by time interval and it works.
>
> But first, we had to remove the old indexes and re-create them to have
> correct indexing (ie rm -rf $builddir/search and run
> ./$builddir/bin/dspace index-init). It only worked when data inside
> index looks like 201201010000 ... - when you look with luke tool
>
> HTH,
> Cristian
>
>
> On 02/01/2012 12:46 PM, Päivi Rosenström wrote:
> > Any solution for this found yet ?
> >
> >
> > Thanks!
> >
> > Päivi
> >
> >
> >> Re: [Dspace-tech] search can't sort by date issued
> >> From: James Bardin<jbardin@bu...>  - 2011-10-27 19:23
> >> On Thu, Oct 27, 2011 at 1:52 PM, Blanco, Jose<blancoj@...>  wrote:
> >>> # Browse indexes
> >>> webui.browse.index.1 = title:item:title
> >>> webui.browse.index.2 = author:metadata:dc.contributor.author:text
> >>> webui.browse.index.3 = subject:metadata:dc.subject.*:text
> >>> webui.browse.index.4 = dateissued:item:dateissued
> >>>
> >>> # Sorting options
> >>> webui.itemlist.sort-option.1 = title:dc.title:title
> >>> webui.itemlist.sort-option.2 = dateissued:dc.date.issued:date
> >>> webui.itemlist.sort-option.3 = dateaccessioned:dc.date.accessioned:date
> >>>
> >> Yeah, I have dateissued in both the browse.index and sort-option, like
> above.
> >> Sorting by dateissued *does* work in browsing, but not for search
> >> results (I think search result ordering is done by lucene, and not the
> >> webui). I took a guess and added another search index for
> >> dateissued:dc.date.issued:date, but that doesn't seem to have any
> >> effect.
> >
> >> -jim
> >
> >
> >
> ------------------------------------------------------------------------------
> > Keep Your Developer Skills Current with LearnDevNow!
> > The most comprehensive online learning library for Microsoft developers
> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> > Metro Style Apps, more. Free future releases when you subscribe now!
> > http://p.sf.net/sfu/learndevnow-d2d
> > _______________________________________________
> > DSpace-tech mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to