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

    Search block

    Thomas Heute Master

      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.