.NET CORE Cross-Platform, ในหน่วยความจำ, ไลบรารีการค้นหาข้อความแบบเต็มสำหรับการสร้างเครื่องมือค้นหา
Coresearch ใช้ดัชนีคว่ำด้วยโครงสร้างข้อมูล Trie ที่เพิ่มขึ้นสำหรับการจัดทำดัชนีเกณฑ์การค้นหาอะตอมจากเนื้อหาไปยังทรัพยากร อัลกอริทึม Trie ทำให้การค้นหา Coresearch มีความยืดหยุ่นมากขึ้นและช่วยให้ทั้งการสืบค้นคำและการดำเนินการที่แน่นอนเช่นการค้นหาฟัซซี่, ไวด์การ์ดและการจับคู่ตัวละคร โครงสร้าง Trie ทั้งหมดจะถูกเก็บไว้ในหน่วยความจำเพื่อประสิทธิภาพที่ดีขึ้น โครงการทั้งหมดถูกเขียนเป็นโครงการการเรียนรู้ดังนั้นโปรดระวังการผลิตในการผลิต
Trie on Wikipedia
source <string path> <string extension>
alias: load
ตัวอย่าง:
> source ./ *.txt
get <string key>
alias: search
ตัวอย่าง:
> search cars
output:
<resource names for key cars>
โหมดการสอบถาม:
query <string prefix> <query mode: . or *>
ตัวอย่างที่ 1:
> query c ?
output:
<resource names for keys: ca, cb, c5, co, c1, ...>
ตัวอย่างที่ 2:
> query c *
output:
<resource names for keys: ca, cabbage, c4a541, cars, cardio, cantaloupe, ...>
ตัวอย่างที่ 3:
> query cars
output:
<resource names for key cars>
add <string resource name> <string content>
alias: insert
ตัวอย่าง:
> add english-dict.txt house
delete <string key>
ตัวอย่าง:
> delete sport
echo <string content>
ตัวอย่าง:
> echo hello
output:
hello
debug <bool>
ตัวอย่าง:
> debug true
flush
ตัวอย่าง:
> flush
info
ตัวอย่าง:
> flush
output:
Nodes in trie: 4651175
Words inserted: 15513389
Resource files: 2227
Memory usage: 1044944640 bytes
clear
ตัวอย่าง:
> clear
เปลี่ยนโหมดดีบัก
--debug <bool>
-d
ตั้งค่าขนาดสูงสุดของหน่วยความจำ (ในไบต์)
--memory-limit <int>
-m
ประมวลผลล่วงหน้าทุกคำก่อนแทรก
--normalize <bool>
-n
รูปแบบสำหรับการลบอักขระที่ไม่ต้องการใช้สำหรับแต่ละคำก่อนแทรก
--pattern <regex>
-p
โหลดข้อมูลจากเส้นทางเฉพาะเมื่อเริ่มต้น
--source <string>
-s
ตั้งค่าส่วนขยายสำหรับการโหลดข้อมูลเมื่อเริ่มต้น
--extension <string>
-e
Coresearch ได้รับใบอนุญาตภายใต้ MIT