This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have the following data model. I would like to get the list of Hymn entities which title or which stanzas contain certain Full-Text keywords. What is the best way of doing this? I tried the following,
However, I get the following error "Query Error: Could not find field [HymnalId] on model [HymnStanza]", which means that lightspeed is trying to find the "HymnalId" column in the HymnStanza table instead of the joined Hymns table. Also, I only need the distinct list of Hymn entities, what is the best way of achieving this from the search results? Thank you! |
|
|
If you are specifying a QueryExpression when searching over multiple entities then the expression needs to be satisfiable by all of the entity types involved. So effectively this is the same as doing the same search for Hymn and then again for HymnStanza. You have different criteria for each query though, so you will either need to execute this as 2 queries, e.g.
And then combine the results as required. Alternatively you could avoid specifying the query expression and then subsequently filter out any Hymn results, e.g.
|
|