Viewing 15 replies - 1 through 15 (of 30 total)
  • Plugin Author WPSolr free

    (@wpsolr)

    Please verify that:

    Your custom field is selected for indexing

    You re-indexed all your data after you added the custom field

    Thread Starter Roman86

    (@roman86)

    Yes, i have done all this steps

    Plugin Author WPSolr free

    (@wpsolr)

    Test if your custom field is indexed by querying all docs containing it:

    /select?fq=punchline_value_str:*

    Thread Starter Roman86

    (@roman86)

    Plugin Author WPSolr free

    (@wpsolr)

    I meant try this query on your Solr index directly.

    Thread Starter Roman86

    (@roman86)

    I am using gotosolr service. And it ask me for password and user name

    Plugin Author WPSolr free

    (@wpsolr)

    Use your gotosolr admin dashboard to get a link to your index with the keys (Security key -> Browser)

    Thread Starter Roman86

    (@roman86)

    <response>
    <lst name=”error”>
    <str name=”msg”>undefined field punchline_value</str>
    <int name=”code”>400</int>
    </lst>
    <str name=”params”>fq=punchline_value:*</str>
    </response>

    https://joxi.ru/l2ZnEoXF8l0no2

    Plugin Author WPSolr free

    (@wpsolr)

    /select?fq=punchline_value_str:*

    Thread Starter Roman86

    (@roman86)

    <response>
    <lst name=”error”>
    <str name=”msg”>
    org.apache.solr.search.SyntaxError: Cannot parse ‘select?fq=punchline_value_str:*’: Encountered ” “:” “: “” at line 1, column 29. Was expecting one of: <EOF> <AND> … <OR> … <NOT> … “+” … “-” … <BAREOPER> … “(” … “*” … “^” … <QUOTED> … <TERM> … <FUZZY_SLOP> … <PREFIXTERM> … <WILDTERM> … <REGEXPTERM> … “[” … “{” … <LPARAMS> … <NUMBER> …
    </str>
    <int name=”code”>400</int>
    </lst>
    <str name=”params”>fq=select?fq%3Dpunchline_value_str:*</str>
    </response>

    Plugin Author WPSolr free

    (@wpsolr)

    not

    fq=select?fq=punchline_value_str:*

    but

    fq=punchline_value_str:*

    Thread Starter Roman86

    (@roman86)

    Sorry

    <response>
    <result name=”response” numFound=”0″ start=”0″/>
    </response>

    Plugin Author WPSolr free

    (@wpsolr)

    No document indexed contains this field.

    Open a post containing this field, save it. Then re-execute this query, you should see it.

    Thread Starter Roman86

    (@roman86)

    I have done like you said.
    When i have update the value of the field, Solr Operations page show that one post need to be indexed. I have indexed it. But this “?fq=punchline_value_str:*” give that
    <response>
    <result name=”response” numFound=”0″ start=”0″/>
    </response>

    Plugin Author WPSolr free

    (@wpsolr)

    is there a punchline_value custom field on the post you saved ?

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