arraypad / bleve-sort

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a quick demo used to figure out some apparently odd behaviour with Bleve.

The answer ended up being blevesearch/bleve#417 but I thought I might as well publish it for posterity and maybe to serve as a simple usage example for Bleve.

TLDR:

  • To sort by a text field it needs a keyword mapping for a stable sort order (which might mean duplicating the field)
  • When using a struct generated from a protobuf, the fields are identified using the original names from the protobuf and not the CamelCased version the protobuf compiler generates.

About


Languages

Language:Go 97.5%Language:Makefile 2.5%