Mav*_*lin 4 solr filtering duplicate-removal solr-query-syntax
我的Solr索引有两种类型的用户(Type-A和Type-B),可以用称为“ type”的字段来标识。但是,用户可能同时在Type(A和B)下都有条目。
例如,
Jacob is a user who comes under both Types(A and B). So, he will have two documents in our Index like:  
//document-1  
name:...  
type:A  
age:...  
//end of document-1
//document-2  
name:...  
Type:B  
age:...  
//end of document-2
Run Code Online (Sandbox Code Playgroud)
我的目标是
当搜索用户并且他只是Type-A时,他应该在结果中。
当搜索用户并且他只是B型用户时,他应该在结果中。
我们如何通过查询实现这一目标?
提前致谢!
|   归档时间:  |  
           
  |  
        
|   查看次数:  |  
           3875 次  |  
        
|   最近记录:  |