baidu / baidu/AnyQ

在retrieval.conf中添加SynonymSolrQBuilder报错没有返回

Open
#157 4 comments 6 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.6k
Forks
657
PR merge metrics
No merged PRs in 30d

Description

添加pandord_synony.dict
![synonym](https://user-images.githubusercontent.com/17866386/57509047-ce1d5300-7335-11e9-86cb-bebf41b7d737.PNG)
dict.conf添加
![dict](https://user-images.githubusercontent.com/17866386/57509200-31a78080-7336-11e9-9f3e-8d13d8455ff5.PNG)
retrieval.conf修改为
![re](https://user-images.githubusercontent.com/17866386/57509233-46841400-7336-11e9-8deb-09701cae21c9.PNG)
返回结果报错
RAW: solr_result[{"responseHeader":{"status":400,"QTime":33,"params":{"q":"question:区别 AND +basic_token:(差别 )","fl":"id,question,answer","rows":"15","wt":"json"}},"error":{"msg":"undefined field basic_token","code":400}}
], response not exist;
![result](https://user-images.githubusercontent.com/17866386/57519163-42afbc00-734d-11e9-98ff-75baa8988c0d.png)

请问是什么原因?是配置的问题吗?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with retrieval.conf and dict.conf, then inspect the added pandord_synony.dict and the Solr schema or field configuration used by SynonymSolrQBuilder. Reproduce the query and trace why basic_token is generated but not available to Solr. Done means synonym retrieval returns a valid response without the undefined field error.

Written by the indexing model from the issue text.

Assessment

Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.