mirror of
https://github.com/djohnlewis/stackdump
synced 2025-12-06 07:53:28 +00:00
Changed name of field from 'score' to 'votes' as score is a keyword in Lucene.
This commit is contained in:
@@ -391,7 +391,8 @@ class PostContentHandler(xml.sax.ContentHandler):
|
||||
doc['id'] = str(q['id'])
|
||||
doc['siteName'] = self.site.name
|
||||
doc['creationDate'] = q['creationDate']
|
||||
doc['score'] = q['score']
|
||||
# the XML field name is score, but score is a reserved lucene keyword
|
||||
doc['votes'] = q['score']
|
||||
doc['viewCount'] = q['viewCount']
|
||||
doc['title'] = q['title']
|
||||
doc['ownerUserId'] = q['ownerUserId']
|
||||
|
||||
Reference in New Issue
Block a user