本文介绍了Drupal工作委员会:以“OR”表示方面的搜索运算符,但按最匹配的面标准/项数计算结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我非常坚持为我的问题寻找一个解决方案,希望你能帮助我。

I'm quite stuck with searching for a solution for my problem and I hope that you can maybe help me.

一般来说,我想建一个小工作平台。它包含一个探索部分,就像搜索页面与方面。
实际的工作节点可以用两个词汇技能和兴趣的术语进行标记。
搜索页面上的方面允许用户根据这些技能和兴趣过滤作业。
但是,我想为Facets使用OR-Operator,以便用户获得具有工作的列表,几乎完美匹配他们的技能&兴趣,但也只匹配这些术语中的一些。

In general I want to build a small job platform. It includes an "Explore"-Section, which is just like a Search-Page with Facets.The actual job-nodes can be tagged with terms of the two vocabulary "skills" and "interests".The facets on the search page allow the user to filter jobs exactly along these skills and interests.However, I want to use the "OR"-Operator for the Facets, so that the user gets a list with jobs, that nearly perfect match their skills & interest but also jobs that match only some of these terms.

所以,在这里你可以看到默认的列表页面。在左边是兴趣和类型(运算符OR)的Facets。在右边,您可以看到结果集与标题,节点的技能&利息条款:

So, here you can see the default listing page. On the left are the Facets for interest and type (Operator "OR"). On the right, you can see the result set with title, and the node's skills & interest terms:

现在,我将Musik和Kultur应用为兴趣过滤器:

Now, I'm applying "Musik" and "Kultur" as interest-filters:

如结果集所示,OR运算符提供所有结果。
但是,我想根据他们的相关性对这些结果进行排序。根据匹配标准的数量。
4.和5.结果匹配两个术语,这些术语都是在方面选择的,但它们应该列在所有其他术语的前面。

As you can see in the result-set, the OR-operator delivers all the results.However, I would like to sort these results according to their "relevance" resp. according to the count of matched criterias.The 4. and 5. results match both terms, that are selected in the facet, but they should be listed in front of all other terms.

所以希望你明白我想要实现的目标。我首先从意见开始完成目标,但是随后我转而使用search_api和SOLR,这种方法在将来会更加有效。

So, I hope you understand what I want to achieve. I started at first with Views to accomplish the goal, but I then switched to search_api and SOLR as I think, that this approach is more enhanceable in the future.

第二个目的是,用户可以存储他/她的个人兴趣和技能(之前提到的过滤器)在他的用户个人资料。在这里,用户应该根据他的帐户页面上的个人资料来查看个人的工作建议。

The second aim is, that a user can store his/her individual interests & skills (the filters mentioned before) in his user profile. Here, the user should see individual job recommendations based on his profile on his account-page.

所以,任何提示,提示,技巧,链接都非常受欢迎,因为我有不知道我是否在正确的轨道上解决我的问题。 :)

So, any hints, tips, tricks, links are very welcome as I have no idea if I'm on the right track to solve my problem(s). :)

Robert

推荐答案

也许这种方法可能是一种替代方法:
我可以使用它们作为搜索输入,而不是使用标签作为面/过滤器。
当我在apache出售搜索页面的搜索字段中输入我的条款/标签时,我将根据相关性得到正确的结果:

Maybe this approach could be an alternative:Instead of using the tags as facets/filters, I could use them just as search input.when i'm typing my terms/tags within the search field of an apache-sold-search-page, i'm getting exactly the results sorted by their relevance:

所以,也许我只是做一小段代码,根据点击的条款/标签自动创建搜索查询...

So, maybe I have just to do a small piece of code, that automatically creates a search query based on the clicked term/tags…

这篇关于Drupal工作委员会:以“OR”表示方面的搜索运算符,但按最匹配的面标准/项数计算结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 07:41