We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7155
    • 160 Posts
    Hi

    In case this is the wrong area, my apologies. I looked through Ajaxsearch and cant seem to find any mention of what I am looking for.

    I would like webusers to be able to upload pdf documents with title,keywords etc...and also be able to search for documents using titles,keywords etc.

    Is there a ready solution/snippet I can use or a clever method of using MODx which can help me? Or do I have to build something myself?

    Thank-you for your time!
      • 25663 MODX Staff
      • 12,272 Posts
      You can’t search inside the content of PDFs with AjaxSearch. You can create a file TV type to store a reference to those PDFs, and search on the meta-info about those documents though.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 7155
        • 160 Posts
        Quote from: rthrash at Jul 12, 2009, 04:51 PM

        You can create a file TV type to store a reference to those PDFs, and search on the meta-info about those documents though.
        I would like to just search for meta-info about them

        would you care to show me how I should go about it?
          • 25663 MODX Staff
          • 12,272 Posts
          I’ll move this to the appropriate forum: AjaxSearch
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 7155
            • 160 Posts
            Quote from: rthrash at Jul 13, 2009, 12:56 PM

            I’ll move this to the appropriate forum: AjaxSearch
            thanks. will wait for help
              • 7155
              • 160 Posts
              anyone know how I can do this?
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                There does not appear to be any easy way to do this. From what I can find out, the only way is to use an external program to convert the .pdf to text, then run a spider or some other indexing application that stores its result; your search will actually be searching the spider’s/indexer’s results.

                http://www.sphider.eu/docs.php
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 7155
                  • 160 Posts
                  Quote from: sottwell at Jul 28, 2009, 07:22 AM

                  There does not appear to be any easy way to do this. From what I can find out, the only way is to use an external program to convert the .pdf to text, then run a spider or some other indexing application that stores its result; your search will actually be searching the spider’s/indexer’s results.

                  http://www.sphider.eu/docs.php

                  hi susan

                  i meant the method where one can upload a file and save its meta details with a TV.Then search would be based on the meta details, according to RThrash. I dont know where to start or what to do with what. Not that good yet
                    • 7155
                    • 160 Posts
                    I am probably not making sense. Sorry about that

                    I would like the ability to upload pdf file, manually enter the title and keywords then have a user able to search by keywords sent.

                    from the looks of it, it seems I will have to create a snippet.
                      • 10449
                      • 956 Posts
                      I was just gonna suggest to create a weblink for each PDF (as a reference), and use a separate template with 2-3 TVs (filename, file-keywords, author, filesize...). But apparently AjaxSearch doesn’t search weblinks at all. Even when entering the keywords in the "description" field, AS won’t find it.