LetoDMS Community Forum
FullText Search Results Order - Printable Version

+- LetoDMS Community Forum (https://community.letodms.com)
+-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4)
+--- Forum: Technical Support (https://community.letodms.com/forumdisplay.php?fid=10)
+--- Thread: FullText Search Results Order (/showthread.php?tid=613)



FullText Search Results Order - lobizonxp - 12-19-2012

Hi!

I've opened this thread, to ask for help about the FullText Search Results... its working apparently fine, but the result is simply ID ordered, it's possible to reorder this search using filename?

I've been searching inside the code to handle this, but I have nothing clear.


RE: FullText Search Results Order - steinm - 12-19-2012

(12-19-2012, 08:49 PM)lobizonxp Wrote: Hi!

I've opened this thread, to ask for help about the FullText Search Results... its working apparently fine, but the result is simply ID ordered, it's possible to reorder this search using filename?

I've been searching inside the code to handle this, but I have nothing clear.

Do you mean filename or document title? Ordering by filename may not be what you want because it's irrelevant for letodms and just kept to be used when the file is downloaded. Ordering by document title makes more sense but is currently not possible because the document title is not available as a single string but choped up into tokens.

If you dare to do the modifications yourself, check out

http://framework.zend.com/manual/1.12/en/zend.search.lucene.searching.html

and LetoDMS_Lucene/Lucene/IndexedDocument.php

Uwe