問題タブ [websolr]
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.
sunspot-rails - SunSpot solr でのインデックス作成の遅延は、レコードの保存時に削除要求を行う
遅延インデックス作成は正常に機能していますが、記録の保存では、削除要求が websolr に送信されます...ここにログが表示されます
SOLR リクエスト (14.3ms) [ path=# parameters={data: Message 547488, headers: {"Content-Type"=>"text/xml"}, method: post, params: {:wt=>:ruby},クエリ: wt=ruby, パス: update, uri: http://index.websolr.com/solr/index/update?wt=ruby , open_timeout: , read_timeout: } ]
SOLR リクエスト (12.4ms) [ path=# parameters={data: Message 547488, headers: {"Content-Type"=>"text/xml"}, method: post, params: {:wt=>:ruby},クエリ: wt=ruby, パス: update, uri: http://index.websolr.com/solr/index/update?wt=ruby , open_timeout: , read_timeout: } ]
SOLR リクエスト (9.7ms) [ path=# parameters={data: , headers: {"Content-Type"=>"text/xml"}, method: post, params: {:wt=>:ruby}, query: wt=ruby, path: update, uri: http://index.websolr.com/solr/index/update?wt=ruby , open_timeout: , read_timeout: } ]
これらは、単一のメッセージの作成に対して行われた 3 つの要求です。
ここに私の検索ブロックがあります
お早めにご覧ください、
ありがとう
django - Heroku で Django を使用して Websolr をセットアップする
Heroku の django を利用したアプリに WebSolr サポートを追加しようとしています。Ruby を使用した実装の詳細な手順があります。
https://devcenter.heroku.com/articles/websolr
しかし、それをヘイスタックに結び付ける方法がわかりません。誰もこれをやったことがありますか?
ありがとう。
編集:
settings.py
ファイルを次のように変更することで実装できました。
次に実行します:
のコンテンツをschema.xml
websolr インターフェイスの詳細タブにアップロードします。そして、一度走った
インデックスが作成されました。
ruby-on-rails - Near realtime updating of Solr/Sunspot index issue on Websolr/Heroku
I have a callback on a Model in my rails app as follows
This works great on my local machine and as soon as I update an instance of the class, it's index entry is updated and it's searchable with it's new attributes.
However this same code does not work when deployed to Heroku. This upsets me deeply. Is there an environment/solr config difference preventing this from working?
I'm using Sunspot 1.2.x
UPDATE: It seems the reindex does take place, but after a minute or so.
solr - フィールドの折りたたみ/グループ化 - SOLR が 2 つの結果セット グループの交差を返すようにする方法は?
グループ化するための 2 つのフィールドがあります。これらの 2 つのフィールドには、異なるキーワードを格納できます。
元:
Field1: CD、書籍、電子書籍
フィールド 2: repo1、repo2、repo3、repo4
ここで、field1 だけを個別に、field2 を個別にグループ化するのではなく、CD/repo1 、book/repo2、e-book/repo3、e-book/repo4、CD/repo4 の組み合わせをグループ化したいと考えています。つまり、2 つのグループ化された結果 (グループ化された結果の交差) に基づいてグループ化する必要があります。SOLR がすべての組み合わせに対してグループ結果を返すようにする方法はありますか?
ありがとう。BB
solr - Sunspot と WebSolr の 3 つの用語のうち 2 つを一致させる
検索の部分一致が正しく機能しません。検索に「ダブリン アイルランド」と入力すると、アイルランドのダブリンのすべての結果が正しく返されます。ただし、「County Dublin Ireland」と入力すると、何も返されません。
次のように schmea.xml に EdgeNGramFilter を設定しました。
そして、私は場所で太陽黒点の終わりに全文検索を行っています:
3 つの条件のうち 2 つが一致するのに、なぜ結果が得られないのですか?
solr - Sunspot Solr accessing non-stored attribute fields in search results
I'm using Sunspot Solr on Rails for search.
In my class definition I have something like this (simplified from my real one):
Is there any way for me to access the integer and boolean field for their values directly in the hit results from a search?
I see there is the option to set up attribute fields with stored => true
, which makes them available to the hit objects. However, the integer and boolean fields are clearly already stored as-is somewhere, as I'm capable of sorting and filtering them, just not accessing them through the hit object's stored method, so is there any way I can get them out for display?
If the answer to this is no, what exactly is stored => true
doing when passed to an integer or boolean field?
I have a fairly large index on Websolr, and reindexing over this with stored => true
would be a bit prohibitive.
solr - Sunspot Solr:すべての行のインデックスを再作成せずにフィールドを追加することは可能ですか?
Sunspotのドキュメントには、次のように書かれています。
オブジェクトの「スキーマ」(検索可能なブロックのコード)に変更を加える場合は、変更がSolrに反映されるように、すべてのオブジェクトのインデックスを再作成する必要があります。
この手順に従わないとどうなりますか?
具体的には、Websolrにかなり大きなインデックスがあり、インデックスを再作成せずにブールフィールドを追加するとどうなりますか?
ブールフィールドの値でフィルタリングできるようにしたいのですが、または値true
でフィルタリングする必要はありません。これは機能しますか、それともインデックスを再作成するためのこの警告に常に従う必要がありますか?false
nil
websolr - 複数の言語の Websolr シノニム
Websolr で別の類義語辞書を使用するにはどうすればよいですか? (構成パネルには同義語ファイルが 1 つしかありません。おそらく、言語ごとに個別の同義語セットが必要です)
ruby-on-rails - Sunspot の Solr Spatial Search で距離を参照するにはどうすればよいですか?
標準の構文で Sunspot on Rails 経由で Apache Solr を使用しています。
検索すると:
ヒットした検索場所からの距離を取得するにはどうすればよいですか? ヒットで geodist を返すために 100 万の異なる構文オプションを試しましたが、何も機能していないようです。