Welcome to Squishdot Squishdot How-To Newbies Websites
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Searching things other than Articles and Replies
Squishdot Posted by Micah Parrish on Saturday April 21, 12:58AM, 2001
from the do-do-do-it-your-self-if-you-wanna-get-anything-done dept.
I've got some HTML documents that I'd like to be searchable from the Squishdot search form, using the same text input field. Any clues on how to go about this?

Putting the full text of these documents into an article is not an acceptable solution.

Any ideas or code will be appreciated

Micah Parrish

<  |  >

 

Related Links
  • Articles on Squishdot
  • Also by Micah Parrish
  • Contact author
  • The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Re: Searching things other than Articles and Replies
    by Chris Withers on Sunday April 29, 06:36PM, 2001

    Squishdot behaves like a ZCatalog.

    They can be used to index your documents, but you'll need a helper method to convert the document_src of the DTML Documents (which is what you'll use) to the body that Squishdot will want to search using the standard search form.

    Read this.

    cheers,

    Chris

    [ Reply to this ]
    Re: Searching things other than Articles and Replies
    by Stephen B. Kirby on Thursday May 03, 09:08PM, 2001

    Chris,

    I read the reference that you linked, but I'm still confused. Could you be more specific?

    [ Reply to this ]
    • Re: Searching things other than Articles and Replies
      by Chris Withers on Thursday May 03, 09:15PM, 2001
      Sorry, not really :-(

      Chris
      [ Reply to this ]
      • Re: Searching things other than Articles and Replies
        by Stephen B. Kirby on Wednesday May 16, 08:28PM, 2001
        I was finally sucessful, but considering my limited experience with Zope and Squish-Dot I wouldn't say it was the best way...It's my way.

        First of all, I created a ZCatalog in my Squish-Dot directory to catalog the DTML Documents. In this example I called it "maincatalog". I didn't add any Indexes or Meta_Types to the catalog. Next, I performed a "Find Objects" to catalog the "DTML Documents" in the folder.

        I have attached a file that contains my customized version of the Search and Report DTLM Methods to query the Squish-Dot and maincatalog.

        Suggestions appreciated.
        Click to download attachment methods.txt
        5KB (5166 bytes)

        [ Reply to this ]
        • Cool :-)
          by Chris Withers on Friday May 18, 04:08PM, 2001
          This is actually prettymuch the right way to do it :-)

          You don't especially need the second ZCatalog (a Squishdot site _is_ a ZCatalog) but it'll probably help with organising your documents anyway, so don't worry about it.

          Keep hacking, it only gets easier,

          Chris

          [ Reply to this ]

     
    The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.