query for document that two fields are equal?

前端 未结 3 1403
有刺的猬
有刺的猬 2021-01-13 16:07

There are two text fields in solr, both of them are white space tokenized and have lower case filter. below is the schema:



        
3条回答
  •  长情又很酷
    2021-01-13 16:46

    Have you tried the function 'strdist' and range query 'frange'? A range query like this would help:

    {!frange l=1 u=1}strdist(field1, field2, edit)

提交回复
热议问题