Skip to content

Weighted search #35

Answered by klamparski
Beltshassar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Beltshassar. Indeed it will be hard or even impossible to achieve with pure Extbase's QueryBuilder because it does not give a lot of features. For sure it can't handle subqueries or ordering by dynamic properties (can't test it now but I think an error will be thrown because it's based on model properties and that will be unknown property).

Did you tried to use MySQL's view? Such view can be a wrapper for more complex SELECT query. If you would like to use this approach it will be required to create separate model and TCA definition for such view to make Extbase working as expected. Generally it would be entity like all the others but based on MySQL view instead of real table.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kszymukowicz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants