Typo3 4.2.6 Setting up Indexed Search

21
Apr
7

I have been struggling for awhile now to get the indexed search to display results on the frontend. I had the catching working on the pages but no results where ever being displayed. All the documentation I found was dated and shows their being a starting point option to select when you add the plug-in to the content of a page. That was removed back in 2006 according to the change log of the module. Finally

I found the typo script that you need to set to tell the indexed search where to look for search results. It was pretty simple after I figured this out. Place this code in the setup on the template of the page that has the indexed search plug-in.

plugin.tx_indexedsearch.search.rootPidList = 73,27,15,14 #change the numbers to the ids of where to begin searches at

Also wanted to make a note that the search will not search through system folders that are below site pages. You will need to specify those in the list of ids if you have sub-pages in the folders that need to be searched.

Typo3 indexed search setup

Typo3 indexed search setup



7 Comments

7 Comments

  1. Michael Cannon
    11:07 pm on April 22nd, 2009

    Are you only indexing via the front-end or using the crawler?

    Do you have realurl or cooluri in place? Are your search results seeing the nice URLs?

  2. Kevin Harris
    8:32 am on April 23rd, 2009

    Yes currently I am only indexing via the front-end…eventually I want to setup the crawler but that might take some work (if possible at all) as we are running this on windows and not Linux. I do not have realurl or cooluri in place, I am assuming those give you the nice urls such as those found on this website. That is in the plans as well. the search results are showing a visually clean path at the bottom but the actually link is giving a regular url path such as index.php?id=1&stuff=more

  3. Mike
    9:49 am on May 21st, 2009

    How do you get site to start indexing via the front-end? Also, in the documentation for this extension along with Starting Point you are also supposed to select how many levels deep you want the search to go. Is there any typoscript for that?

  4. Kevin Harris
    10:09 am on May 21st, 2009

    There are several things you must do. First in your template you need to enable index for your pages. this can be done by using

    page = PAGE
    page.config.index_enable = 1 #will index pages

    Next you must specify what pages can be indexed by the search. I put this in the setup for the template of my search results page.

    plugin.tx_indexedsearch.search.rootPidList = 49,52,80 pages and folders that will be index. will index sub pages but not sub folders so if you want those indexed you must specify their ids here.

    After this is setup you can go to info and see the index data on your pages. Of course you will need to click on a few of the pages in your site so they will be indexed first since this is going to index them through users visiting the site and not by the crawler. Hope that helps.

  5. brandonrichards
    3:00 pm on June 29th, 2009

    I can’t believe you’re actually using typo3 again…. such pain

  6. Vittorio
    6:21 am on November 13th, 2009

    Hi everybody. I’m trying to getting works indexed search.
    I’m struggling with index plugin. Right now any plugin’s contents aren’t indexed. An other problem is that i have a plugin that is reached by external link in typo3 backend (this because the plugin must be in menu and generate several pages depending on the get that is replaced with realurl) and even those aren’t parsed by the crawler.
    Any idea?

  7. Kevin Harris
    8:32 am on November 13th, 2009

    I am not sure about setting up the crawler. I have not setup the crawler yet we are only using the page caching. see my previous comment on setting up the code in your template to enable indexing on the pages. That may be the place you need to start.

Leave a comment

RSS feed for comments on this post