Forums

Plugin Relevanssi - not sure its indexing - blank page continuously (6 posts)

  1. tommy2hoes
    Member
    Posted 1 month ago #

    Hi, thanks for the plugin.

    I feel like im going crazy over here, but I just cant seem to get it to index, or at least, it doesnt seem like its doing anything and the page is always blank after clicking continue indexing for the 100th time, i figured id right a post about it (couldnt find the answer anywhere else- was reference close to it in other thread, he said after 20 mins he refresed and then it took a few secs after pressing continue indexing again).

    So maybe this works without any notice, silently behind my blank page, but as i say after the 100th hit and wait i think probably not.

    Please note the indexing has obv started to work in some way, I have list of 25 words most used and searching I canactually see a few pages - but I cannot se anything once i click continue indexing, I d assume I would see alist of indexed pages so far somewhere? IE you said it indexed 400 pages first go, so assume that the CI page told you so?

    I did have another plugin installed that may cause issues, so I deactivated it and starte over but still nothing, no info to view anywhere on indexing progress/indexed so far and just a blank screen and the message to make sure I remember to index.

    This is driving me crazy over here, Really wnat this plugin to work.

    Also another note is that I only have 20 or so pages on the site.

    If you need any more information please let me know and ill duly provide...

    AGGHHHHHH!!

    Thanks in advance

  2. tommy2hoes
    Member
    Posted 1 month ago #

    You know what, I got it fixed. It took about half a second to index. I changed it to just index pages in the options, and that seemed to work! My site is currently all pages so not a problem, and maybe when I add posts it wont have a problem either, maybe that wa.......NOPE

    REVISE

    It is fine indexing all pages, it had a problem with expanding the shortcodes, that must of stopped it somewhere. If I uncheck this option its all good, I would of liked them to expand mind, but hey ho can have everything

    Thank for the plugin

  3. tommy2hoes
    Member
    Posted 1 month ago #

    Ok now i got your attention: how do I (if possible) show the number of results, previously I was showing them using this codde:

    <?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; _e(''); _e('<span class="search-terms">'); echo $count . ' '; _e('results'); wp_reset_query(); ?></p>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    But since the switch to rele it just shows 0 results regardless.

    Any help on this little bugger would be uch apppreciated sir.

  4. msaari
    Member
    Posted 1 month ago #

    I don't know about your indexing problems - though it's a curious scenario, what happens to indexing if there are no posts to index - but I can help you with the number of results. The way you're doing it most certainly woth work with Relevanssi, but this does:

    $count = count($posts);

    Put this after have_posts() and you've got the number of hits in $count.

  5. tommy2hoes
    Member
    Posted 1 month ago #

    Thanks for reply msaari, that worked great for showing the count. Although it doesnt show all results returned just up to 10, so I guess just whats being outputted on the page. But I can find solutions for that one.

    Also just to clear up, it works fine indexing posts and pages, even if you dont have any posts - it was the expand shortcodes option that was causing it to get stuck while indexing.

  6. msaari
    Member
    Posted 1 month ago #

    Ah, you're right, I thought it gave the total amount, but I forgot my result pages show way more than 10 hits.

    Maybe I can add a function or something in the next version to display the total number of hits, I'll have to see.

Reply

You must log in to post.

About this Topic