I don't understand this snippet in pm-btree.lisp (MAKE-TABLE):

(when (duplicates-allowed-p bt)
  (cl-postgres:exec-query (active-connection)
                          (format nil "create unique index ~a_idx on 
~a(qi,value);"
                                  (table-of bt)
                                  (table-of bt))))

Why make the index unique when the btree allows duplicates?
This breaks inverted indices with duplicate values.

Removing the 'unique' qualifier lets it still pass all tests
plus making duplicate values work like they should.

I work with stable, but I guess the new code still has this.

  Leslie

_______________________________________________
elephant-devel site list
elephant-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel

Reply via email to