4 Replies Latest reply on Oct 24, 2004 7:20 PM by theute

    Search block

    theute

      I added a simple search block. (more features will come later)
      It is in the nukes 1 HEAD. (You will need to update the thirdparty directory to get the latest lucene.jar)

      It looks by default into the main text of a forum message, a news or an HTML page (not into anything else). It also use the OR operator by default.
      It means:

      "foo bar" will give you back all news, forum posts and HTML pages with either 'foo' or 'bar' in their main text (not in title neither news summary)

      "foo AND bar" will give you back all news, forum posts and HTML pages with 'foo' and 'bar' in their main text (not in title neither news summary)

      There are other fields that you can look on but it is not 'advertised'

      You can find all news, posts, HTML pages submitted by bob by typing:
      IDX_AUTHOR:bob

      You can also mixed all those things above:

      "IDX_AUTHOR:bob AND foo" will you gove you back everything from bob with foo in the text

      The fields searchable are:
      IDX_ID
      IDX_AUTHOR
      IDX_TITLE
      IDX_TEXT
      IDX_CREATIONDATE

      And by typing this post i realize that i forgot to put
      IDX_MODULE as searchable (forum, bb or news) so it is not searchable as of today.

      The HTML module is not fully indexed, the only way to index it is by using the index module as an admin. If you submit/edit an HTML it won't be indexed as of today.

      If you already have a nuke running recreate all the index (news/bb/html) by using the index module (click on delete then create for every module)

      Comments will be more than welcome on things you would like to see implemented. I plan to make a user friendly interface to create more complex queries.

        • 1. Re: Search block

          thomas forgot to say that you can use the index service in your module to make it participate to the global site search engine.

          anyway, congrat thomas for the work

          • 2. Re: Search block
            theute

            I updated/improved/fixed the search module.

            Now you can do an "advanced search" on selected modules.

            - Published and archived news are indexed
            - All forum messages are indexed
            - All HTML pages are indexed

            As cooper stated, it is easy for anyone making a module to make it searchable. When the search and index modules will be stabilized i will write a how-to. But basically there is very few to do so that it is indexed and if it is indexed then it is automatically searchable.

            Any feedback would be greatly appreciated.
            (it's all in the CVS HEAD)

            • 3. Re: Search block
              fschmid

              Hi,

              where can I found the search module.

              I looked in the CVS but I can't find something like SearchModule in the Nukes projects. (I'm new to Nukes.)

              thx
              Frank

              • 4. Re: Search block
                theute

                It is with the core modules.
                I am not sure it should be there but for now it is.
                It can easily be turned off anyway.

                http://cvs.sourceforge.net/viewcvs.py/jboss/nukes/nukes/src/main/org/jboss/nukes/core/modules/search/

                In order to have the search module working correctly you need the modules to be correctly indexed, so you need BB or/and News or/and HTML module(s) from the CVS HEAD.