Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Full Text Search Engine Server for .NET, Lightweight embeddable, powered by iBoxDB.

NotificationsYou must be signed in to change notification settings

iboxdb/ftserver-cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

User Guide

Setup

  1. Install .NET

  2. Download this Project.

  3. Run

cd FTServerdotnet run -c Release
  1. Openhttp://127.0.0.1:5066/

  2. Press [Ctrl+C] to shut down.

Input a Full URL to index the Page, then search.

Move page forward by re-indexing the page.

Search Format

[Word1 Word2 Word3] => text hasWord1 andWord2 andWord3

["Word1 Word2 Word3"] => text has"Word1 Word2 Word3" as a whole

Search [https] or [http] => get almost all pages

Developer Guide

Download Visual Studio Code

Dependencies

iBoxDB

AngleSharp

Semantic-UI

The Results Order

The results order based on theid() number inclass PageText, descending order.

A Page has many PageTexts. if don't need multiple Texts, modifyHtml.getDefaultTexts(Page), returns only one PageText (the page description text only,Config.DescriptionOnly=true ).

the Page.GetRandomContent() method is used to keep the Search-Page-Content always changing, doesn't affect the real PageText order.

Use the ID number to control the order instead of loading all pages to memory.

Search Method

search (... String keywords, longstartId, longcount)

startId => which ID(the id when you created PageText) to start,use (startId=Long.MaxValue) to read from the top, descending order

count => records to read,important parameter, the search speed depends on this parameter, not how big the data is.

Next Page

set the startId as the last id from the results of search minus one

startId=search("keywords",startId,count);nextpage_startId=startId-1// this 'minus one' has done inside search()...//read next pagesearch("keywords",nextpage_startId,count)

mostly, the nextpage_startId is posted from client browser when user reached the end of webpage,and set the default nextpage_startId=Long.MaxValue,in javascript the big number have to write as String ("'" + nextpage_startId + "'")

Private Server

Open

publicPageHtml.Get(Stringurl);

Set your private WebSite text

Pagepage=newPage();page.url=url;page.title=title;page.text=bodyTextpage...= ...return page;

Configure Cache

Setting Index Readonly Cache (Readonly_MaxDBCount) fromFTServer/Code/Config.cs .

Set Maximum Opened Files

[user@localhost~]$ cat /proc/sys/fs/file-max803882[user@localhost~]$ulimit -a| grep filesopen files                      (-n) 500000[user@localhost~]$ulimit -Hn500000[user@localhost~]$ulimit -Sn500000[user@localhost~]$ $ vi /etc/security/limits.conf*         hard    nofile      500000*         soft    nofile      500000root      hard    nofile      500000root      soft    nofile      500000[user@localhost~]$ firewall-cmd --add-port=5066/tcp --permanent

Stop Tracker daemon

Why does Tracker consume resources on my PC?

[user@localhost~]$ tracker daemon -k[user@localhost project]$ tracker reset --hard

More

Transplant from Full Text Search Java JSP Version


Flag

About

Full Text Search Engine Server for .NET, Lightweight embeddable, powered by iBoxDB.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp