How can I tell Solr to return the hit search terms per document?

后端 未结 3 880
半阙折子戏
半阙折子戏 2020-11-29 07:50

I have a question about queries in Solr. When I perform a query with multiple search terms that are all logically linked by OR (e.g. q=content:(foo OR bar OR foobar)

3条回答
  •  旧时难觅i
    2020-11-29 08:24

    In my case solr6.6 the query fl=foo:exists(query({!v='content:(foo)'})) not seems to be working it always return 0 documents and I was having foo in my document so I need to change this query to ?q=*:*&fl=foo:exists(query({!v='content:(foo)'})) and I started work for me.

提交回复
热议问题