Kelson has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/343896 )
Change subject: Add the valuesmap metadata.
......................................................................
Add the valuesmap metadata.
This way, the searcher will know where values are stored.
Change-Id: I1228ebfefd70dc7c22fc37034c50d0019968c796
---
M zimwriterfs/xapianIndexer.cpp
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Kelson: Verified; Looks good to me, approved
diff --git a/zimwriterfs/xapianIndexer.cpp b/zimwriterfs/xapianIndexer.cpp
index 6cb6713..65129b7 100644
--- a/zimwriterfs/xapianIndexer.cpp
+++ b/zimwriterfs/xapianIndexer.cpp
@@ -52,6 +52,7 @@
void XapianIndexer::indexingPrelude(const string indexPath_) {
indexPath = indexPath_;
this->writableDatabase = Xapian::WritableDatabase(indexPath + ".tmp",
Xapian::DB_CREATE_OR_OVERWRITE);
+ this->writableDatabase.set_metadata("valuesmap",
"title:0;snippet:1;size:2;wordcount:3");
this->writableDatabase.begin_transaction(true);
/* Insert the stopwords */
--
To view, visit https://gerrit.wikimedia.org/r/343896
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1228ebfefd70dc7c22fc37034c50d0019968c796
Gerrit-PatchSet: 1
Gerrit-Project: openzim
Gerrit-Branch: master
Gerrit-Owner: Mgautierfr <[email protected]>
Gerrit-Reviewer: Kelson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits