I am trying to tune the Sphinx index with a basic many-to-many relationship between works and genres:
artworks
id
title
description
genres
id
name
artwork_genres
artworks_id
genres_id
In my sphinx config file, I have something like
source src_artwork {
...
sql_query = SELECT id, title, description FROM artworks
sql_attr_multi = uint tag from query; SELECT id,name FROM genres
}
This is from the docs, as far as I can understand, in ambiguous attributes and sql_attr_multi
But, obviously, there is no mention of the connection table, and I cannot understand how this is introduced into the configuration. I just would like the search for "Impressionism" to lead to works belonging to this genre (weighted, if necessary, if this term is displayed in other fields)
source
share