OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57550b8
)
ns_search: update sample code
author
hylom
<hylom@users.sourceforge.jp>
Thu, 22 Feb 2018 12:18:39 +0000
(21:18 +0900)
committer
hylom
<hylom@users.sourceforge.jp>
Thu, 22 Feb 2018 12:18:39 +0000
(21:18 +0900)
src/ns_search/create_sample_index.py
patch
|
blob
|
history
diff --git
a/src/ns_search/create_sample_index.py
b/src/ns_search/create_sample_index.py
index
9a444dd
..
0daa195
100644
(file)
--- a/
src/ns_search/create_sample_index.py
+++ b/
src/ns_search/create_sample_index.py
@@
-35,6
+35,7
@@
def main():
doc.add_string_field("type", "story")
doc.add_string_field("id", item["sid"])
+ doc.add_text_field("title", item["title"])
doc.add_text_field("content_text", content_text)
doc.add_text_field("dept", item["dept"])
doc.add_int_field("create_time", timestamp)