Skip to main content
Participant
February 8, 2023
Question

SOLR cfsearch context missing in some results

  • February 8, 2023
  • 1 reply
  • 220 views

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 has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    February 8, 2023

    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 

    Participant
    February 16, 2023

    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. 

    BKBK
    Community Expert
    Community Expert
    February 17, 2023

    Please report a bug.