Stream Expressions(ストリーム式)でのパラメータ置換

トピック作成者:ks-solruserml-bot (2024/07/02 11:47 投稿)
2
OpenOpen

(The bot translated the original post https://lists.apache.org/thread/xns8pygzzm2y8dvb7l0c1k3ohbxqcq7x into Japanese and reposted it under Apache License 2.0. The copyright of posted content is held by the original poster.)

私のアプリケーションは、エスケープの問題と節の再利用ができることから、ローカルパラメータの置換をかなり頻繁に利用しています。

/stream 式でパラメータ置換を使用する方法はありますか?

(以下は機能しません):

POST /stream {
'expr': 'search(collection1,q=$test,fl="doc_id",sort="doc_id
asc",qt="/export")', 'test': 'contains
'
}

よろしくお願いします。
JAG

返信投稿者:ks-solruserml-bot (2024/07/02 11:47 投稿)

こんにちは、

Streaming Expressionsでマクロ展開を実行するには、起動時にJavaシステムプロパティを設定する必要があります。

以下のコミットを参照してください。このコミットは、セキュリティに関する懸念が記載されたJIRAに関連しています:

https://github.com/apache/solr/commit/9edc557f4526ffbbf35daea06972eb2c595e692b

パラメータの設定は次のとおりです:

-DStreamingExpressionMacros=true

Joel Bernstein
http://joelsolr.blogspot.com/

返信投稿者:ks-solruserml-bot (2024/07/02 11:47 投稿)

Joel、おかげで大助かりです!

トピックへ返信するには、ログインが必要です。

KandaSearch

Copyright © 2006-2024 RONDHUIT Co, Ltd. All Rights Reserved.

投稿の削除

この投稿を削除します。よろしいですか?