PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Results filtered by path?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Results filtered by path?

    It would be useful to be able to specify a form field that defines a partial URL path that filters any results. For example, if I have:

    Code:
     <input type=hidden path="journals/0203/">
    .. then the results would filter out all results except those that occur in the directory journals/0203/

    This is effectively a dynamic category option, which I could use as a "search from here", or "search this journal" option.

    The converse option is to filter out all files in a specified directory. A more simplistic option is to "return results in the current directory and below", which would require only a boolean form field.

    Regards,
    Ian Tresman

  • #2
    There is no feature in the software to do this. To get something similar you would need to set up all the possible categories in advance, then include the category required as a hidden field.

    Another approach would be to use the CGI option, select the XML results output option, then write your own script to parse the XML results to filter out whatever results you didn't like.

    Comment


    • #3
      Originally posted by wrensoft View Post
      There is no feature in the software to do this. To get something similar you would need to set up all the possible categories in advance, then include the category required as a hidden field.
      Wouldn't it be quite easy to implement? When you find a document that should be included in the results list, and create the link for it, you just check whether the specified subpath is in the the link URL, and then either include the result, or discard it?

      Regards,
      Ian Tresman

      Comment


      • #4
        Yes fairly easy. It would probably be no more than 2 days work to make the code changes in the PHP, ASP, JS & CGI scripts, add some new options in the configuration window to allow the user to enter in a sub-path, test it all, update the documentation, and make a new release package.

        And if only one person needs this change, it doesn't justify the development effort.

        Comment


        • #5
          Originally posted by wrensoft View Post
          Yes fairly easy. It would probably be no more than 2 days work to make the code changes in the PHP, ASP, JS & CGI scripts, add some new options in the configuration window to allow the user to enter in a sub-path, test it all, update the documentation, and make a new release package.

          And if only one person needs this change, it doesn't justify the development effort.
          Point taken .. of course everybody needs the change... they just don't know it yet!

          Comment


          • #6
            Our team actually could use this change as well.

            We have hundreds of subdirectories and thousands (36k+ at last count) of files (all PDFs), so categories are not feasible.

            Comment


            • #7
              Here is one solution:

              http://www.wrensoft.com/forum/showthread.php?t=2712

              Comment

              Working...
              X