Jump to:

10391 Posts in 2202 Topics by 1713 members

All other Modules

SilverStripe Forums » All other Modules » Lucene module - search including PDF, Word and Excel

Discuss all other Modules here.

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3
Go to End
Author Topic: 3569 Views
  • NoBone
    Avatar
    Community Member
    1 Post

    Re: Lucene module - search including PDF, Word and Excel Link to this post

    Hi everyone.

    I'm trying to install the module but when i press "rebuild search index" i get the following error.

    Action "rebuildZendSearchLuceneIndex" not allowed on controller (Class: CMSMain)

    Any ideas??

  • Darren Inwood
    Avatar
    Community Member
    12 Posts

    Re: Lucene module - search including PDF, Word and Excel Link to this post

    Apologies, something had gone wrong with my forum membership, I didn't get your message.

    Appears to be a problem with 2.4.4, I'm looking into it now.

  • Darren Inwood
    Avatar
    Community Member
    12 Posts

    Re: Lucene module - search including PDF, Word and Excel Link to this post

    EDIT: I've now fixed this for 2.4.4 and 2.4.5 with no modifications needed to core files.
    --

    Hi there,

    Appears to be related to this ticket:
    http://open.silverstripe.org/changeset/115313

    Form actions added via extensions no longer work out of the box with SS 2.4.4. I'll work out a proper fix at some stage, but to get it going for now open up cms/code/CMSMain.php and add 'rebuildZendSearchLuceneIndex' to the $allowed_actions array.

    Thanks for trying the Lucene module!
    --
    Darren Inwood
    Web Developer
    Chrometoaster New Media Ltd
    http://www.chrometoaster.com/

  • schellmax
    Avatar
    Community Member
    126 Posts

    Re: Lucene module - search including PDF, Word and Excel Link to this post

    hey, just found indexing relations is now possible. http://code.google.com/p/lucene-silverstripe-plugin/source/detail?r=29
    i'll definitely give this a try in my next silverstripe project.
    thanks for all the work!

  • Darren Inwood
    Avatar
    Community Member
    12 Posts

    Re: Lucene module - search including PDF, Word and Excel Link to this post

    Cheers for your interest!

    I've just released a new version incorporating some ideas from users. It indexes files a LOT quicker, and can index older Word/Excel documents too. If you're playing with it at the moment, I'd suggest grabbing the 0.3.3 release. =]

  • hippo1
    Avatar
    Community Member
    5 Posts

    Re: Lucene module - search including PDF, Word and Excel Link to this post

    Darren - does version 0.3.3 only work with older Microsoft Word/Excel documents (ie Office 97)?
    As it seems my install of SilverStripe (2.4.4) returns search results from .docx and .xlsx but not .doc and .xls.

  • Darren Inwood
    Avatar
    Community Member
    12 Posts

    Re: Lucene module - search including PDF, Word and Excel Link to this post

    Hi hippo1,

    You actually need the 'zip' extension for PHP loaded for scanning xslx/docx/pptx documents to work. To check if you have this extension, visit a phpinfo() page and see if there is a section under 'Configuration' for 'zip'.

    If you're on a debian-based host (most hosting vendors use debian) the zip extension is installed by default, if you're on WAMP/MAMP you may need to go to 'PHP Extensions' and enable the php_zip option.

    Hope this helps!
    --
    Darren

  • hippo1
    Avatar
    Community Member
    5 Posts

    Re: Lucene module - search including PDF, Word and Excel Link to this post

    Thanks Darren, but as explained I can actually scan those documents (.docx, .xlsx) you have mentioned however it wont scan .doc or .xls documents.
    So it seems to me, being rather new to al of this so certainly can be wrong, that the Lucene 0.3.3 module only searches for Office 97 documents (.docx and .xlsx) but not the later versions (.doc and .xls). I was looking at seeing how hard it would be to modify the code to include .doc and .xls documents but thought would ask here first if they should be supoprted and maybe my SilverStripe installation is at fault.
    BTW - I do have the PHP Zip module installed (verified by phpinfo), and am running SS 2.4.4 on a Windows server with SQL2008 as the backend.

    3569 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.