WordPress.org

Ready to get started?Download WordPress

Forums

Solr for WordPress
Solr version 4 (5 posts)

  1. Beltran_r
    Member
    Posted 1 year ago #

    Hi,

    I'm trying to configure Solr for WordPress plugin with Solr 4. It seems that is necessary some changes. I did the following:

    1. solr.EnglishPorterFilterFactory is deprecated. I replaced it with "SnowballPorterFilterFactory with language="English".

    2. Disabled transaction log in solrconfig.xml file:

    <!-- <updateLog>
    <str name="dir">${solr.data.dir:}</str>
    </updateLog> -->

    The connection to Solr is ok but it continues reporting an error with "commit" function. It seems it using a deprecated option. Do you know the exact changes in the schema file to support Solr version 4?

    Thanks,

    Beltran

    http://wordpress.org/extend/plugins/solr-for-wordpress/

  2. dbejean
    Member
    Posted 1 year ago #

    I think it is an issue with the embedded sorl php client library
    Take a look at
    http://code.google.com/p/solr-php-client/issues/detail?id=75

    Download an use the last source at
    http://code.google.com/p/solr-php-client/source/checkout

  3. Beltran_r
    Member
    Posted 1 year ago #

    Thanks! I will try.

  4. supermango
    Member
    Posted 1 year ago #

    Beltran_r,

    Can you please copy/paste your changes in the files? Were you able to make any more progress on this? Thanks!

  5. ineedagamedesigner
    Member
    Posted 1 year ago #

    Add these in your schema.xml where appropriate.
    Updating to latest SolrPhpClient fixed the commit issue.

    1. <field name="_version_" type="long" indexed="true" stored="true"/>
    2. Use <filter class="solr.SnowballPorterFilterFactory" language="English"/>
    instead of
    <filter class="solr.EnglishPorterFilterFactory" language="English"/>
    3. Download latest SolrPhpClient to the /solr-for-wordpress/ folder under wordpress plugins.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic