Zoo siab txais tos!
Niaj hnub no peb yuav tham txog tag nrho cov ntawv tshawb fawb cav Elasticsearch (tom qab ES), uas
Docsvision 5.5 platform tab tom khiav.

1. Kev teeb tsa
Koj tuaj yeem rub tawm qhov tam sim no version ntawm qhov txuas:
Installer screenshot hauv qab no:

2. Kev kuaj xyuas ua haujlwm
Thaum lub installation tiav, mus rau
Nplooj ntawv xwm txheej ES yuav tsum tshwm sim, piv txwv li hauv qab no:

Yog tias nplooj ntawv tsis qhib, xyuas kom tseeb tias Elasticsearch kev pabcuam khiav. Windows nws
Kev pabcuam Elasticsearch.

3. Txuas rau Docsvision
Kev sib txuas rau Elasticsearch tau teeb tsa ntawm nplooj ntawv kev pabcuam puv npo
indexing.

Ntawm no koj yuav tsum qhia:
1. Elasticsearch server chaw nyob (teeb tsa thaum lub sijhawm teeb tsa).
2. Txoj hlua txuas rau DBMS.
3. Docsvision chaw nyob (hauv hom ConnectAddress=)
4. Ntawm "Daim npav" thiab "Cov Ntawv Qhia" tab, koj yuav tsum teeb tsa cov ntaub ntawv uas
yuav tsum tau indexed.
Koj kuj yuav tsum tau ua kom paub tseeb tias tus account raws li qhov kev pabcuam Docsvision tab tom khiav
Fulltext Indexing kev pabcuam, tau nkag mus rau Docsvision database ntawm MS SQL.
Tom qab kev sib txuas, koj yuav tsum xyuas kom meej tias cov hauj lwm nrog cov lus ua ntej yog tsim nyob rau hauv MS SQL database:
"DV:FullText_<DBNAME>_CardWithFilesPrepareRange"

Tom qab ua tiav cov kev teeb tsa hauv Windows-lub thawv tshawb nrhiav yuav raug qhib rau hauv tus neeg siv khoom.
4. REST API Elastic
Tus thawj coj tuaj yeem tau txais ntau yam ntaub ntawv hais txog kev ua haujlwm ntawm Elasticsearch siv
muab los ntawm REST API.
Hauv cov piv txwv hauv qab no peb yuav siv Insomnia Rest Client.
Tau txais cov ntaub ntawv dav dav
Thaum qhov kev pabcuam tau nce thiab khiav (http://localhost:9200/ hauv browser), koj tuaj yeem ua tau
khiav qhov kev thov:
Cia peb tau txais cov lus teb txog lub xeev ntawm Elasticsearch kev pabcuam (hauv browser):

Insomnia status teb:

Cia peb saib rau xwm txheej - Ntsuab, Daj, Liab. Cov ntaub ntawv raug cai hais txog cov xwm txheej hauv qab no:
• Ntsuab - Txhua yam zoo (Cov pawg ua haujlwm tau zoo)
• Daj - Tag nrho cov ntaub ntawv muaj, tab sis qee qhov replicas hauv pawg tseem tsis tau faib rau nws
• Liab—Ib feem ntawm cov ntaub ntawv tsis muaj yog vim li cas (cov pawg nws tus kheej ua hauj lwm ib txwm)
Tau txais cov xeev txog cov nodes hauv pawg thiab lawv lub xeev (Kuv muaj 1 ntawm):

Txhua qhov ntsuas ES:

Ntxiv nrog rau qhov ntsuas ntawm Docsvision, kuj tseem yuav muaj qhov ntsuas ntawm lwm yam kev siv - lub plawv dhia,
kibana - yog tias koj siv lawv. Koj tuaj yeem txheeb xyuas qhov tsim nyog los ntawm qhov tsis tsim nyog. Piv txwv li,
Cia peb coj tsuas yog indexes uas muaj %card% hauv lub npe:

Elasticsearch configuration
Tau txais Elasticsearch nqis:
Cov txiaj ntsig yuav yog qhov dav heev, suav nrog txoj hauv kev mus rau lub cav:

Peb twb paub yuav ua li cas thiaj nrhiav tau cov npe indexes; Docsvision ua qhov no cia li muab lub npe rau qhov ntsuas hauv hom:
<database name+type of Indexed Card>
Koj tseem tuaj yeem tsim koj tus kheej qhov ntsuas kev ywj pheej:
Tsuas yog qhov no yuav tsis yog GET, tab sis thov PUT:

Tshwm sim:

Cov lus nug hauv qab no yuav qhia tag nrho cov kev ntsuas, suav nrog cov tshiab (cov neeg siv khoom):

5. Tau txais cov ntaub ntawv hais txog cov ntaub ntawv indexed
Elasticsearch index xwm txheej
Tom qab qhov kev teeb tsa thawj zaug los ntawm Docsvision tau ua tiav, cov kev pabcuam yuav tsum tau npaj ua haujlwm thiab pib ua cov ntaub ntawv indexing.
Ua ntej tshaj plaws, cia peb kuaj xyuas tias cov indexes tau sau thiab lawv qhov loj dua li tus qauv "bytes" siv cov lus nug uas twb paub lawm rau peb:
Raws li qhov tshwm sim, peb pom: 87 "ua haujlwm" thiab 72 "cov ntaub ntawv" tau txheeb xyuas, hais txog peb cov EDMS:

Tom qab qee lub sijhawm, cov txiaj ntsig tau ua raws li hauv qab no (los ntawm lub neej ntawd, kev ua haujlwm indexing tau pib txhua 5 feeb):

Peb pom tias cov ntaub ntawv muaj ntau ntxiv.
Koj ua li cas thiaj paub tias daim npav koj xav tau raug txheeb xyuas?
• Ua ntej, koj yuav tsum xyuas kom meej tias daim npav hom hauv Docsvision phim cov ntaub ntawv teev tseg hauv Elascticsearch nqis.
• Thib ob, tos cov array ntawm cov ntawv teev npe - thaum nws nkag mus rau hauv Docsvision, qee lub sijhawm yuav tsum dhau mus ua ntej cov ntaub ntawv tshwm hauv qhov chaw cia.
• Thib peb, koj tuaj yeem tshawb nrhiav daim npav los ntawm CardID. Koj tuaj yeem ua qhov no nrog kev thov hauv qab no:
Yog tias daim npav nyob hauv qhov chaw cia, peb yuav pom nws cov ntaub ntawv "raws"; yog tias tsis yog, peb yuav pom qee yam zoo li no:

Nrhiav ib daim npav hauv Elasticsearch node
Nrhiav ib daim ntawv los ntawm qhov sib tw ntawm qhov Description:
Tshwm sim:

Nrhiav ib daim ntawv uas muaj qhov nkag 'Incoming' hauv nws Cov Lus Qhia
Tshwm sim:

Nrhiav ib daim npav los ntawm cov ntsiab lus ntawm cov ntaub ntawv txuas
tshwm sim:

Cia peb pom txhua daim npav ntawm hom ntawv:
los yog tag nrho daim npav ntawm hom haujlwm:
Siv cov qauv tsim thiab thiab cov kev txwv uas Elasticsearch muab rau hauv daim ntawv ntawm JSON, koj tuaj yeem sau cov lus thov hauv qab no:
Nws yuav qhia txhua daim npav ntawm hom haujlwm, ntawm cov neeg siv uas nws FirstName = Konstantin, thiab leej twg nyob hauv Eagle Office.
tsuas yog ZOO lI Muaj lwm cov ntaub ntawv tsis muaj:
tsis zoo li, teb, docs, cov ntsiab lus, thiab lwm yam.
Tag nrho cov no tau piav qhia .
Qhov ntawd yog txhua yam rau hnub no!
#docsvision #docsvisionECM
Cov kev sib txuas tseem ceeb:
- Insomnia So Cov neeg siv khoom
Tau qhov twg los: www.hab.com
