This discussion is archived
1 Reply Latest reply: Dec 22, 2009 5:21 PM by 843810 RSS

NOT terms for search query?

843810 Newbie
Currently Being Moderated
Hello, I am using JavaHelp's search classes to create a search feature that is implemented differently than JavaHelp's GUI, by writing a modified version of the QueryEngine and Query classes, passing args into QueryEngine's main method, and writing the results to a file. It is working out fine, however, I would like to incorporate a NOT exclusion in the query. There is an example of an extension source in JH called which seems to implement that, since I see variables called, AND, OR, NOT, NEAR, LEFT_PAREN, RIGHT_PAREN. However, I am not seeing how to implement this. The JH doc states:

The file demos/src/sunw/demo/searchdemo/ shows how to extend the HelpSearch class to implement an alternate search engine.

However I am not seeing a class called HelpSearch in jhall.jar, which I believe would include all classes used in JavaHelp.

Any direction on this would be much appreciated.
  • 1. update
    843810 Newbie
    Currently Being Moderated
    first of all, correction, that is (not

    ClientSearchEngine actually extends SearchEngine. I am still not seeing clearly how to implement this, perhaps if I point all the calls made to SearchEngine to ClientSearchEngine it will just work. Maybe I can experiment....