Select SphinxQL 中的联盟?

Select Union in SphinxQL?

是否可以使用 SphinxQL 进行任何类型的 Union?我想要 return 一组结果,其中包含两个查询并按查询顺序排列。一个简单的例子是:

Select Author from idx_jobs where MATCH('@(Author) Steinbeck') Union Select Author from idx_jobs where MATCH('@(Description) Steinbeck')

当然可以

Select Author from idx_jobs where MATCH('@(Author, Description) Steinbeck')

但我试图在结果中提供对 'relevance' 的一些控制。

没有工会。

但似乎 字段权重 会很有用 http://sphinxsearch.com/docs/current.html#sphinxql-select

.... OPTION field_weights=(author=1000)

应该首先匹配作者字段。 (即将其添加到第二个查询的末尾)