Open Source Content Management System

Solr search in staging/live setups

  1. Solr search in staging/live setups

    Wed April 16 2008 15:25:03 UTC
    Hi!

    As the launch date for my shiny new 2.8 website draws closer, more bugs
    begin to crop up: Today I encountered a particularily nasty issue: When
    doing solr-powered searches in the live part of the site, all the links
    of the results point to the staging server. While this in itself is
    easily solvable in the style elements, I suspect that it also means that
    there is no separate index for staging and live, i.e. I guess that
    approved content which is not published so far will also be found from
    the live site although it doesn't exist there.

    Ok, normally, replication should copy approved content almost
    immediately, but there will always be a gap in which 404s will be
    displayed (I had to change the everymin cron run to only run every 5
    mins, otherwise Apache would go down because of load after a few hours).
    Also, I'm wondering what happens with stuff that is deleted in staging
    and if another reindex() call is triggered after replication (which
    would be quite a waste of resources if it all goes into one index anyways).

    So my question is: Did I mess something up when installing? Since
    code-init will also get replicated, I cannot really define a separate
    indexer port (or whatever) for the live version, at least AFAIK. How
    exactly is this supposed to work and what can I do to fix this?


    Bye,

    Andreas
    _______________________________________________
    user mailing list
    user@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/user
    •  Reply
    • stock-icons/16x16/stock_help-agent.png Report abuse
  2. Re: [midgard-user] Solr search in staging/live setups

    Wed April 16 2008 21:30:02 UTC
    P.S.: There really should be a way to exclude specific articles from the
    index. ATM, the only thing I can do is to hide the article completely
    from some users based on ACLs, but displaying the article on site, but
    not in search results requires some heavy hacking in the style elements
    (and commit r16112 if you don't want to screw up the paging system).

    This could work like the "hide in navigation" flag and maybe as an added
    bonus also in DM2 schemas (f.x. a schema property named "noindex", which
    is set to false by default)


    Bye,

    Andreas

    Andreas Flack schrieb:
    > Hi!
    >
    > As the launch date for my shiny new 2.8 website draws closer, more bugs
    > begin to crop up: Today I encountered a particularily nasty issue: When
    > doing solr-powered searches in the live part of the site, all the links
    > of the results point to the staging server. While this in itself is
    > easily solvable in the style elements, I suspect that it also means that
    > there is no separate index for staging and live, i.e. I guess that
    > approved content which is not published so far will also be found from
    > the live site although it doesn't exist there.
    >
    > Ok, normally, replication should copy approved content almost
    > immediately, but there will always be a gap in which 404s will be
    > displayed (I had to change the everymin cron run to only run every 5
    > mins, otherwise Apache would go down because of load after a few hours).
    > Also, I'm wondering what happens with stuff that is deleted in staging
    > and if another reindex() call is triggered after replication (which
    > would be quite a waste of resources if it all goes into one index anyways).
    >
    > So my question is: Did I mess something up when installing? Since
    > code-init will also get replicated, I cannot really define a separate
    > indexer port (or whatever) for the live version, at least AFAIK. How
    > exactly is this supposed to work and what can I do to fix this?
    >
    >
    > Bye,
    >
    > Andreas
    > _______________________________________________
    > user mailing list
    > user@lists.midgard-project.org
    > http://lists.midgard-project.org/mailman/listinfo/user

    _______________________________________________
    user mailing list
    user@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/user
    •  Reply
    • stock-icons/16x16/stock_help-agent.png Report abuse
Designed by Nemein, hosted by Anykey