简体   繁体   English

Cfsearch结合文档和索引查询数据?

[英]Cfsearch in combination of documents and indexed query data?

I have an application which stores all kind of data about people. 我有一个应用程序存储有关人员的所有类型的数据。 The current cfsearch functionality (in Verity) includes searching documents that are attached to these people. 当前的cfsearch功能(在Verity中)包括搜索附加到这些人的文档。

If i have 2 documents attached to 1 person, 1 with say ABC in it and the other with XYZ in it, my ideal searchresult for "ABC AND XYZ" would return the 1 person. 如果我有2个文件附加到1个人,其中1个说ABC,另一个带XYZ,我对“ABC和XYZ”的理想搜索结果将返回1个人。 But as both 'words' are indexed in different documents, the standard behaviour is not to return any result from the cfsearch, because the combination doesnt exist in any of the 2 documents. 但由于两个“单词”都在不同的文档中编入索引,因此标准行为不会返回cfsearch的任何结果,因为这两个文档中的任何一个都不存在。

Is there any way to combine indexed documents and/or query data in a way that the search is executed in the combination of relevant docs and data? 有没有办法以一种在相关文档和数据的组合中执行搜索的方式组合索引文档和/或查询数据? In my application that would mean that i could index all documents and data regarding people and have an intelligent 'global' search to find the right person. 在我的应用程序中,这意味着我可以索引有关人员的所有文档和数据,并进行智能的“全局”搜索以找到合适的人选。

ADDED: That also means that if i have one person with several documents attached to it (and maybe some additional indexed query-data) that from a search-point-of-view i would like to treat all that data 'as one'. 补充:这也意味着,如果我有一个人附加了几个文件(可能还有一些额外的索引查询数据),从搜索角度来看,我希望将所有数据“视为一个”。 Ie. IE浏览器。 if i have document1 with BREAD in it and document2 of the same person with BUTTER in it, ideally the search for BREAD AND BUTTER would result in a pointer to that person. 如果我有包含BREAD的document1和包含BUTTER的同一个人的document2,理想情况下搜索BREAD和BUTTER会导致指向该人的指针。 (and ofcourse the normal searchindex doesnt find any matches because neither of the two documents contain both words. (当然,正常的searchindex没有找到任何匹配,因为这两个文档都不包含这两个词。

any pointers and help very much appreciated! 任何指针和帮助非常感谢! (should Solr offer new possibilities in comparison to Verity, no problem!) (Solr应该提供与Verity相比的新可能性,没问题!)

thanks! 谢谢!

Bart 巴特

Actually, documentation explains this pretty good. 实际上,文档解释了这个非常好。

I suppose you'll need "internet" search type. 我想你需要“互联网”搜索类型。 Attribute type Used to specify the parser that Verity uses to process the criteria. 属性类型 用于指定Verity用于处理条件的解析器。 .

All available options explained in Using Verity Search Expressions section, with nice examples. 使用Verity搜索表达式”部分中介绍了所有可用选项,并提供了很好的示例。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM