質問

I would like to perform a Solr search using the values of certain fields of an indexed document which I can identify by its id. With MLT this is somehow possible, but I would prefer a regular query parser. Can I somehow use subqueries to inject the result of a subquery into the main query?

For example, let's say I have indexed information about books into solr, where each document represents a book, with an id, title and author field. At query time I have only the document id availible and I would like to search for books by the same author in a single step. Is this possible without using MLT?

役に立ちましたか?

解決

You can use JOIN.

http://HOST:PORT/CORE/select?q={!join from=author to=author}id:<ID>
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top