1
0
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:
Samuel Lai
2012-02-04 17:04:54 +11:00
parent 4fc9f4e780
commit ea2170edb9
2 changed files with 4 additions and 2 deletions

View File

@@ -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']