問題タブ [redisearch]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
redis - FT.AGGREGATE で取得するフィールドを選択するにはどうすればよいですか?
ドキュメントをフィールドのtype等号folderで並べ替える必要があり、取得する必要があるのは だけですが、 だけを返すidようにすることはできないようです。id
FT.AGGREGATE Query:DirectoryItem * APPLY "@type == 'folder'" as isFolder LIMIT 0 50 SORTBY 2 @isFolder DESC APPLY @id as id
上記のクエリは、、typeおよびisFolderフィールドをid返します。
idどうにかして取得することしかできませんか?