Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter Roman86

    (@roman86)

    Yes it is.
    I can get the value by this
    get_post_meta($post->ID, ‘punchline_value’, true)
    in the code

    Thread Starter Roman86

    (@roman86)

    The version of the my plugin is
    Version 2.9

    Plugin Author WPSolr free

    (@wpsolr)

    This is the reason.

    Thread Starter Roman86

    (@roman86)

    I cannot update to the last version now.
    Can told what i need to change in the code to fix it?

    Plugin Author WPSolr free

    (@wpsolr)

    3.1
    Fix bug on filters which prevented custom fields to be indexed.

    Try to compare code of 2.9 and 3.1

    Thread Starter Roman86

    (@roman86)

    Thank you

    Thread Starter Roman86

    (@roman86)

    I have install new version of the plugin to my local.
    The “puncline_value” is indexed.
    <response>
    <result name=”response” numFound=”1″ start=”0″>
    <doc>
    <str name=”id”>54687</str>
    <str name=”PID”>54687</str>
    <str name=”author”>Roman</str>
    <str name=”author_s”>https://avenir.loc/author/roman/</str&gt;
    <arr name=”autocomplete”>
    <str>Test Title1</str>
    <str/>
    <str>News</str>
    </arr>
    <arr name=”categories”>
    <str>News</str>
    </arr>
    <str name=”content”/>
    <str name=”displaydate”>2016-02-03 17:53:00</str>
    <str name=”displaymodified”>2016-02-04 10:20:08</str>
    <int name=”numcomments”>0</int>
    <str name=”permalink”>https://avenir.loc/54687/sfdsfsdfsdfsdfsdf/</str&gt;
    <arr name=”punchline_value_str”>
    <str>Punchline value1</str>
    </arr>
    <arr name=”spell”>
    <str>Test Title1</str>
    <str/>
    <str>News</str>
    </arr>
    <str name=”title”>Test Title1</str>
    <str name=”type”>post</str>
    </doc>
    </result>
    </response

    But, when i tried to find by this value, it’s give “no result”
    When i am searching by title – this is work. Do i need to add something to schema.xml?

    Plugin Author WPSolr free

    (@wpsolr)

    punchline_value is indexed, but is empty.

    Thread Starter Roman86

    (@roman86)

    <arr name=”punchline_value_str”>

    <str>Punchline value1</str>

    </arr>

    The value of this field is “Punchline value1”
    i have added this for test

    Plugin Author WPSolr free

    (@wpsolr)

    5.1
    Use custom fields also in search, autocomplete and suggestions (did you mean). Until now, custom fields where only displayed as facets.
    WARNING: this will require you to re-index all your documents. It can take a while if you have a large amount of documents in your WP database.

    Custom fields used as facets exist from the beginning of wpsolr.

    But searching in custom fields appeared in wpsolr 5.1

    Thread Starter Roman86

    (@roman86)

    If i will install the last version of the solr, the search by the value of this field will work?
    I mean not facets.

    Plugin Author WPSolr free

    (@wpsolr)

    Yes. You will be able to search in all your custom fields.

    Thread Starter Roman86

    (@roman86)

    I have install latest version of WPSOLR. I am using gotosolr.com hosting.
    But when i trying to index my data it give me error

    Please check your Solr Hosting, an exception occured while calling your Solr server:

    Solr JSON response could not be decoded

    Plugin Author WPSolr free

    (@wpsolr)

    Contact me with the chat box on wpsolr.com

    Plugin Author WPSolr free

    (@wpsolr)

    Solved by setting “https” in wpsolr index definition.

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Dosen't search by meta field’ is closed to new replies.