Skip to content

Commit

Permalink
BREAKING CHANGE - rename upside_down to upsidedown
Browse files Browse the repository at this point in the history
  • Loading branch information
mschoch committed Sep 30, 2016
1 parent 35da361 commit f90856b
Show file tree
Hide file tree
Showing 39 changed files with 83 additions and 81 deletions.
4 changes: 2 additions & 2 deletions cmd/bleve/cmd/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"fmt"

"github.com/blevesearch/bleve/index/upside_down"
"github.com/blevesearch/bleve/index/upsidedown"
"github.com/spf13/cobra"
)

Expand All @@ -43,7 +43,7 @@ var dumpCmd = &cobra.Command{
switch rowOrErr := rowOrErr.(type) {
case error:
return fmt.Errorf("error dumping: %v", rowOrErr)
case upside_down.UpsideDownCouchRow:
case upsidedown.UpsideDownCouchRow:
fmt.Printf("%v\n", rowOrErr)
fmt.Printf("Key: % -100x\nValue: % -100x\n\n", rowOrErr.Key(), rowOrErr.Value())
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/bleve/cmd/dumpDoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"fmt"

"github.com/blevesearch/bleve/index/upside_down"
"github.com/blevesearch/bleve/index/upsidedown"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -45,7 +45,7 @@ var dumpDocCmd = &cobra.Command{
switch rowOrErr := rowOrErr.(type) {
case error:
return fmt.Errorf("error dumping: %v", rowOrErr)
case upside_down.UpsideDownCouchRow:
case upsidedown.UpsideDownCouchRow:
fmt.Printf("%v\n", rowOrErr)
fmt.Printf("Key: % -100x\nValue: % -100x\n\n", rowOrErr.Key(), rowOrErr.Value())
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/bleve/cmd/dumpFields.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"fmt"

"github.com/blevesearch/bleve/index/upside_down"
"github.com/blevesearch/bleve/index/upsidedown"
"github.com/spf13/cobra"
)

Expand All @@ -41,7 +41,7 @@ var dumpFieldsCmd = &cobra.Command{
switch rowOrErr := rowOrErr.(type) {
case error:
return fmt.Errorf("error dumping: %v", rowOrErr)
case upside_down.UpsideDownCouchRow:
case upsidedown.UpsideDownCouchRow:
fmt.Printf("%v\n", rowOrErr)
fmt.Printf("Key: % -100x\nValue: % -100x\n\n", rowOrErr.Key(), rowOrErr.Value())
}
Expand Down
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

"github.com/blevesearch/bleve/index"
"github.com/blevesearch/bleve/index/store/gtreap"
"github.com/blevesearch/bleve/index/upside_down"
"github.com/blevesearch/bleve/index/upsidedown"
"github.com/blevesearch/bleve/registry"
"github.com/blevesearch/bleve/search/highlight/highlighters/html"
)
Expand Down Expand Up @@ -64,7 +64,7 @@ func init() {
Config.DefaultMemKVStore = gtreap.Name

// default index
Config.DefaultIndexType = upside_down.Name
Config.DefaultIndexType = upsidedown.Name

bootDuration := time.Since(bootStart)
bleveExpVar.Add("bootDuration", int64(bootDuration))
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ import (

// index types
_ "github.com/blevesearch/bleve/index/smolder"
_ "github.com/blevesearch/bleve/index/upside_down"
_ "github.com/blevesearch/bleve/index/upsidedown"
)
4 changes: 2 additions & 2 deletions http/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"fmt"
"net/http"

"github.com/blevesearch/bleve/index/upside_down"
"github.com/blevesearch/bleve/index/upsidedown"
)

// DebugDocumentHandler allows you to debug the index content
Expand Down Expand Up @@ -70,7 +70,7 @@ func (h *DebugDocumentHandler) ServeHTTP(w http.ResponseWriter, req *http.Reques
case error:
showError(w, req, fmt.Sprintf("error debugging document: %v", row), 500)
return
case upside_down.UpsideDownCouchRow:
case upsidedown.UpsideDownCouchRow:
tmp := struct {
Key []byte `json:"key"`
Val []byte `json:"val"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"github.com/blevesearch/bleve/analysis"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package upside_down
package upsidedown

import (
"testing"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"os"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// +build cznicb

package upside_down
package upsidedown

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// +build forestdb

package upside_down
package upsidedown

import (
"os"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// +build rocksdb

package upside_down
package upsidedown

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// +build leveldb

package upside_down
package upsidedown

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion index/upside_down/dump.go → index/upsidedown/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"reflect"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"github.com/blevesearch/bleve/document"
Expand Down
2 changes: 1 addition & 1 deletion index/upside_down/reader.go → index/upsidedown/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"reflect"
Expand Down
2 changes: 1 addition & 1 deletion index/upside_down/row.go → index/upsidedown/row.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"encoding/binary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"math"
Expand Down
2 changes: 1 addition & 1 deletion index/upside_down/stats.go → index/upsidedown/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
package upsidedown

import (
"encoding/json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.

package upside_down
//go:generate protoc --gofast_out=. upsidedown.proto

package upsidedown

import (
"encoding/binary"
Expand Down
Loading

0 comments on commit f90856b

Please sign in to comment.