Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
W
wissen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hans Roh
wissen
Commits
145d8d87
Commit
145d8d87
authored
Sep 11, 2017
by
Hans Roh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upd readme
parent
02b41265
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
README.rst
README.rst
+3
-10
wissen/export/skitai/package/mirror.py
wissen/export/skitai/package/mirror.py
+1
-1
No files found.
README.rst
View file @
145d8d87
...
...
@@ -999,7 +999,7 @@ Here's example of client side indexer script using API.
session.post ('http://127.0.0.1:5000/v1/books/documents', doc.as_json ())
numdoc += 1
if numdoc % 1000:
session.get ('http://127.0.0.1:5000/v1/books/co
llection/co
mmit')
session.get ('http://127.0.0.1:5000/v1/books/commit')
cursor.close ()
dbc.close ()
...
...
@@ -1017,7 +1017,6 @@ APIs are:
# remove collection with all index files
session.remove ('http://127.0.0.1:5000/v1/books")
# get collection locks
session.get ('http://127.0.0.1:5000/v1/books/locks")
# create 'custom' lock
...
...
@@ -1047,15 +1046,9 @@ APIs are:
session.delete ('http://127.0.0.1:5000/v1/books/search?q=title:book")
# commit
session.get ('http://127.0.0.1:5000/v1/books/co
llection/co
mmit')
session.get ('http://127.0.0.1:5000/v1/books/commit')
# rollback
session.get ('http://127.0.0.1:5000/v1/books/collection/rollback')
# refresh
session.get ('http://127.0.0.1:5000/v1/books/collection/refresh')
# close
session.get ('http://127.0.0.1:5000/v1/books/collection/close')
# disable: remove coleection config, reserve index files
session.get ('http://127.0.0.1:5000/v1/books/collection/disable')
session.get ('http://127.0.0.1:5000/v1/books/rollback')
For more detail about API, see `app.py`_.
...
...
wissen/export/skitai/package/mirror.py
View file @
145d8d87
...
...
@@ -125,7 +125,7 @@ def mirror (source, target):
segments
=
os
.
path
.
join
(
normpath
(
status
[
'indexdirs'
][
0
]),
'segments.new'
)
if
os
.
path
.
isfile
(
segments
[:
-
4
]):
os
.
remove
(
segments
[:
-
4
])
os
.
rename
(
segments
,
segments
[:
-
4
])
os
.
rename
(
segments
,
segments
[:
-
4
])
colopt
=
status
[
"colopt"
]
dcolopt
=
normpath
(
colopt
[
'path'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment