問題タブ [sphider]

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.

0 投票する
1 に答える
702 参照

robots.txt - Using Sphider search engine and robots.txt

I've installed the Sphider 1.3.5 search engine on the site I'm developing. I'm working on a shared host (Dreamhost), and everything seemed to have installed fine and is working properly, save for one problem.

Sphider seems to be ignoring my robots.txt file. I've validated robots.txt syntax successfully, checked and rechecked my paths to ensure they were correct, reindexed the site in the admin area time and again, and no matter what I do Sphider won't stay out of my supposedly disallowed files.

Here is the text of the file:

I noticed Google Webmaster Tools is currently seeing the text of the file as:

This was the state of the file till this morning when I added the rest of the disallowed files. Linking directly to robots.txt brings up the full text. I presume Google hasn't reindexed so that's why it sees the old file. But I manually reindexed through the Sphider admin successfully, and it seems to be ignoring those rules.

Anyone see what the problem could be? I'm stumped.

0 投票する
1 に答える
371 参照

json - Getting Sphider to output JSON

I've recently added the Sphider crawler to my site in order to add search functionality. But the default search.php that comes with the distribution of Sphider that I downloaded is too plain and doesn't integrate well with the rest of my site. I have a little navigation bar at the top of the site which has a search box in it, and I'd like to be able to access Sphider's search results through that search field using Ajax. To do this, I figure I need to get Sphider to return its results in JSON format.

The way I did that is I used a "theme" that outputs JSON (Sphider supposts "theming" its output). I found that theme on this thread on Sphider's site. It seems to work, but more strict JSON parsers will not parse it. Here's some example JSON output:

The issue is that there is a trailing comma near the end. According to this, "trailing commas are not allowed" when using PHP's json_decode() function. This JSON also failed to parse using this online formatter. But when I took the comma out, it worked and I got this better-formatted JSON:

Now, how would I do this programmatically? And (perhaps more importantly), is there a more elegant way of accomplishing this? And you should know that PHP is the only language I can run on my shared hosting account, so a Java solution for example would not work for me.

0 投票する
1 に答える
2024 参照

mysql - Sphider検索を私のWebサイトに追加するにはどうすればよいですか?「データベースに接続できません」

Sphider検索エンジンをダウンロードしましたが、現在ローカルホスト経由で実行しようとしています。ルートフォルダに抽出し、HTMLで検索バーを作成しました。

しかし、何かを入力すると、次のエラーが発生します。

データベースに接続できません。ユーザー名、パスワード、ホストが正しいかどうかを確認してください。

私はMySQLにかなりinstall.txt慣れていないので、sphider-1.3.5フォルダーにあるを読み、次のことを行いました。

mysql -u yourusername-pプロンプトが表示されたらパスワードを入力します。b)MySQLで、次のように入力します。CREATE DATABASE sphider_db;

しかし、入力すると次のCREATE DATABASE sphider_dbようになります。

データベースの作成

今何をタイプしたらいいのかわからない。試しsphider_db exitましたが何も起こりませんか?

この問題がほとんどの人にとって常識である場合は申し訳ありませんが、MySQL/Sphiderを使い始めたばかりです。

0 投票する
0 に答える
258 参照

search-engine - 垂直検索アンギンのためのSphider

垂直検索エンジンを構築するためのさまざまなツールを調査しています。http://www.sphider.eu/に出くわしましたが、問題なく動作すると思います。

ただし、インデックスを作成できるページ数はわかりません。文書にはこれに関する情報がないようです。この特定の検索エンジンについて約100のサイトのインデックスを作成し、少なくとも1日に1回はインデックスを再作成する必要があると思います。

Sphiderはこれを管理できますか?または、他の解決策を探す必要がありますか?

0 投票する
1 に答える
587 参照

php - Sphider 検索エンジンを Web サイトに統合する

サイトで Sphider 検索エンジンを稼働させていますが、2 つの問題があります。

  1. 結果が適切に表示されるようにインデックスを設定する方法がわかりません。

  2. 私はsearch.phpファイルを取得しようとしています

    私のサイトのルートディレクトリにあるdashboard.phpファイルで。

スファイダーは

しかし、それを含めても何も表示されません。私が抱えている問題について誰かが何か洞察を持っているなら、私はそれを感謝します. はい、あちこちでいくつかのオンライン ドキュメントを見つけましたが、これを解決するものは何もありません。

0 投票する
2 に答える
673 参照

php - 手動で追加しない限り、一部のページは Sphider でインデックス化されません

最近、自分のサイトに Sphider をインストールしました。インストールは簡単で、ページのインデックス作成も非常に簡単でしたが、小さな問題が発生しました。

私は自分のサイトにたくさんの (非常に多くの) ページを持っていますが、それらの多くはインデックスに登録されていません。.csv ファイルを取得し、PHP で foreach ループを使用してテーブルを作成するページがあり、最初の列は各項目へのハイパーリンクで、その項目専用のページがあります。Sphider がこれらの個々のページにインデックスを付けず、テーブル ページにのみインデックスを付けるという問題が発生します。なぜこれらのページがインデックスに登録されていないのかわからないので、私は正しい 2 と 8 です。

持っているかどうかを確認しましたが、持っていませんでした。Sphider を設定して、テーブルから個々のページのランダムな 1 つをインデックスに登録したところ、検索に表示されました。すべてのページでこれを行いますが、新しいアイテムを取得するたびに新しいページを追加し続けるため、インデックス リストに追加するものが殺到します。

私の質問は次のとおりです。Sphider のデータベースに各 URL を追加して、それらが表示されるように見えるスクリプトを作成できる解決策はありますか? または、私は完全なdivであり、.csv PHPテーブルのために何かがうまくいかないという本当に明らかな何かがここに欠けていますか?

私は完全に混乱しているので、あなたの助けに本当に感謝します.

ありがとう、カーティ

PS、 tl; を含めるための標準は何ですか? 博士?それはRedditorsだけですか?:P

0 投票する
2 に答える
773 参照

mysql - Sphider MySQL テーブル

サイトを検索するために Sphider をインストールしようとしていますが、MySQL テーブルを作成しようとすると、次のエラーが発生します。

どうすればこれを回避できますか?

0 投票する
1 に答える
152 参照

php - Sphider PHP 検索エンジンの正規表現

自分のサイトに Sphider Websearch を実装して、インデックス作成を開始しようとしています。2 つの意見があります: URL に含める必要があります/URL に含めないでください。正規表現を使用する必要があり、リンク構造がわかっているサイトをインデックスに登録したい、および次を含むすべての URL をクロールしたいhttp://example.com/frage/....

正規表現フィールド*/frage/に入力すると、インデックスへのアクセスが禁止されているため機能しません。私も試し*\/frageてみ*\/frage\/ました。

どうすればそれを処理できますか?

0 投票する
1 に答える
892 参照

php - Sphider 検索エンジンを CodeIgniter と統合する

Sphider 検索エンジンCodeIgniterフレームワークに統合したいのですが、その方法がわかりません。

誰かがこれに対する解決策を持っていますか?