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

    (@wpsolr)

    this value is not showing in the results of the search

    What do you mean exactly ?

    Thread Starter Roman86

    (@roman86)

    I have the post.
    This text https://joxi.net/eAO0GoLI4zkB9r i have added by using custom field called “main_text”.
    When i am trying to search “Besonders stark betroffene AHV” from this text it’s give this result https://www.avenir-suisse.ch/search-results/?wpsolr_q=Besonders+stark+betroffene+AHV

    Solr is find the post. But it’s showing to me the text from the “conent” field. Not from needed “main_text”.

    Plugin Author WPSolr free

    (@wpsolr)

    The result is not highlighted by Solr for this post. As a consequence, wpsolr displays the content instead.

    Thread Starter Roman86

    (@roman86)

    Yes. I know.
    Is there some may to make it work. To show the value of the custom fields?

    Plugin Author WPSolr free

    (@wpsolr)

    Normally, this result is highlighted, and therefore it’s indexed content is displayed, including the custom fields content.

    For this post, with those keywords, Solr is not providing highlights.

    Try to test other combinations of post/keywords to see if you can get highlights with custom fields content.

    Thread Starter Roman86

    (@roman86)

    No, it’s not working. can it be related to the schema.xml or config.xml
    The version of the plugin is 7.6

    Plugin Author WPSolr free

    (@wpsolr)

    I performed some tests with a custom field.

    In general, custom field content is highlited in results.

    But, It appears also that the Solr definition of the field “text” in schema.xml (search analyser section) can prevent highlighting. It’s not a problem specific to custom fields, but also to the post contents.

    After commenting out the porter filter in schema.xml

    <!–<filter class=”solr.PorterStemFilterFactory”/>–>

    , i could highlight the keyword “highlighting” in both content and custom field (I could’nt before)

    The schema.xml provided is a default one, for english language. It can/must be tweaked to your own requirements.

    Thread Starter Roman86

    (@roman86)

    So, like i understand, commenting the

    <!--<filter class="solr.PorterStemFilterFactory"/>-->

    will resolved issue?

    Plugin Author WPSolr free

    (@wpsolr)

    Yes, but it could introduce other issues.

    PorterStemFilterFactory is a stemmer, which helps finding words by radicals. It is language related.

    Thread Starter Roman86

    (@roman86)

    thank you. I will check it. Will hope this will do not create new problems

    Plugin Author WPSolr free

    (@wpsolr)

    I forgot: you’ll have to reindex all your data
    (necessary as soon as you update your schema.xml with structural changes)

    Thread Starter Roman86

    (@roman86)

    I have commenting this field, but it’s not working. If you want i can send my schema.sml

    Plugin Author WPSolr free

    (@wpsolr)

    Did you reindex ?

    Thread Starter Roman86

    (@roman86)

    YEs. Sure.
    I can send you a link to my solr admin ui

    Plugin Author WPSolr free

    (@wpsolr)

    Also, reload your index in Solr admin UI, before reindexing.

    Without a reload, your new schema is not used by Solr.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘ACF showing in results’ is closed to new replies.