Skip to main content
Participant
Feb 8, 2023 1:02 AM UTC
Question

SOLR cfsearch context missing in some results

Hi 

I am facing an issue where in SOLR search result in some results context column is empty string. I am receiving in some but not all. I am using CF 2021.

Why is this so?

Kindly help

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    BKBK
    Community Expert
    Community Expert
    Feb 8, 2023 11:32 AM UTC

    Fellow developers reported a similar issue some years ago. It turned out that cfsearch had a quirk whereby you had to specify the column name - or else the default name, contents - as the value of the criteria attribute. See, for example, https://stackoverflow.com/questions/21946262/cfsearch-not-returning-results-when-using-criteria 

    Translate
    Participant
    Feb 16, 2023 11:50 PM UTC

    thanks for you reply. That did not solve the problem. to me it looks like Solr is not storing data in contents field --though store flag is on--.

    my observation is that some searched items shows highlights only when that searched string comes in summary field. Summary and contents fileds has same schema. 

    Translate
    BKBK
    Community Expert
    Community Expert
    Feb 17, 2023 8:22 AM UTC

    Please report a bug.

    Translate