简体   繁体   English

如何在 SOLR v.7.5 中查找重复单词的文档

[英]How to find documents with repeated words in SOLR v.7.5

I have document with the following fields:我有包含以下字段的文档:

  • street: 28 Oktovriou街道:28 Oktovriou
  • housenumber: 28门牌号:28

This document was indexed by copyfield.该文档由 copyfield 索引。

When I try to find this document, I use the following query:当我尝试查找此文档时,我使用以下查询:

select?q=28*%20AND%20%2228%20Oktovriou%22*

But by this query I also get the documents which contain word 28 only one time.但是通过这个查询,我也只得到了一次包含单词28的文档。

So, how should I make the query to find the documents which contain 28 twice and also Oktovriou ?那么,我应该如何进行查询以查找包含28两次以及Oktovriou

You have a couple of options.你有几个选择。

  1. You could use phrase search with slop/proximity : address:"28 Oktovriou 28"~10您可以使用带有slop /proximity 的短语搜索:address:"28 Oktovriou 28"~10
  2. For more complex matches, Complex Phrase Query Parser may be relevant as well对于更复杂的匹配, 复杂短语查询解析器也可能相关

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQL:如何找到重复的值直到分离 - SQL: How can I find repeated value's till separation 选择查询以在Solr中使用2个或更多单词且不带双引号的搜索 - Select query for search with 2 or more words without double quotes in solr 如何在给定的单词列表中查找包含单词的行? 不仅是某个单词,该列表中的任何单词都很重要 - How to find rows which contain words in a given list of words? Not only a certain word, any word in that certain list counts 查找针对R中的另一列重复的列值 - Find a column value which is repeated against another column in R 选择查询以在Solr中的多个字段中使用2个或多个不带双引号的单词进行搜索 - Select query for search with 2 or more words without double quotes against more than one field in solr 如何向用户呈现大量重复数据 - How to present massive amounts of repeated data to user 如何在SOLR中使用不同的+子选择创建查询(在…中选择) - how to create query in SOLR with distinct + subselect (select in …) 如何使用PHP在MongoDB中选择具有特定元素的文档? - How to select documents with specific elements in MongoDB with PHP? 如何在没有重复行的情况下对内部联接使用选择查询? - How to use a Select Query with inner joins without having repeated rows? 如何使用 Solr 选择不同的字段值? - How to select distinct field values using Solr?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM