Coder Social home page Coder Social logo

montezuma's People

Contributors

html avatar puercopop avatar skypher avatar tsmacdonald avatar wiseman avatar woudshoo avatar xach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

montezuma's Issues

Sorting by field

Field sorting is not working at all.

I propose 3 changes:

First, this line is wrong. Should read (doc hit) instead of (doc hit1)

Next, this line should be totally removed.

And finally, in this line (make-instance 'sort :sort sort) should read (make-instance 'sort :fields sort)

Another minor improvements would be to either export the sort class or the reverse-p option and reversing the order of the string comparators, so the documents are ordered from a to z by default (without needing to explicitly pass :reverse-p t).
Anyway, changing those 3 lines enables field sorting, like

(montezuma:search *index* "title:wathever" :sort '("title"))
(montezuma:search *index* "title:wathever" :sort (make-instance 'montezuma::sort :fields '("title") :reverse-p t))

Thanks for mantaining Montezuma :)

ASDF error when attempting to run unit tests

README.txt says that (asdf:oos 'asdf:test-op '#:montezuma) runs the unit tests. However that immediately produces an ASDF error: :FORCE and :FORCE-NOT arguments not allowed in a nested call to ASDF/OPERATE:OPERATE unless identically to toplevel.

During compilation, a few other ASDF-related warnings and deprecation notices are printed. To prevent the error and to remove the warnings, montezuma.asd should be edited to conform to the conventions of ASDF version 3+.

I am using SBCL 2.0.1 and ASDF 3.3.4.

Test are failed on ECL 21.2.1 and ABCL 1.9.2 on macOS 12

:info:test ;;;
:info:test ;; MONTEZUMA::TEST-PRIORITY-QUEUE ................
:info:test ;; MONTEZUMA::TEST-PRIORITY-QUEUE-CLEAR ..
:info:test ;; MONTEZUMA::TEST-PRIORITY-QUEUE-ADJUST-TOP .
:info:test ;; MONTEZUMA::TEST-PRIORITY-QUEUE-STRESS ..
:info:test ;; MONTEZUMA::TEST-TABLES ..........................................
:info:test ;; MONTEZUMA::TEST-STRING-TO-BYTES ..
:info:test ;; MONTEZUMA::TEST-M2K-ISSUE ;;; Warning: FAILURE: Test MONTEZUMA::TEST-M2K-ISSUE: (MONTEZUMA::TC-M2K-WRITE-INDEX-SEARCH) signalled #<a SIMPLE-ERROR 0x109c8b740> ("Pathname without a physical namestring:
:info:test  :HOST NIL
:info:test  :DEVICE NIL
:info:test  :DIRECTORY (ABSOLUTE opt local var macports build
:info:test              _Users_catap_src_macports-ports_lisp_cl-montezuma cl-montezuma
:info:test              work .home .cache common-lisp ecl-21.2.1-unknown-macosx-x64 opt
:info:test              local var macports build
:info:test              _Users_catap_src_macports-ports_lisp_cl-montezuma cl-montezuma
:info:test              work build source cl-montezuma tests unit regression
:info:test              tc-m2k-test-index)
:info:test  :NAME segments
:info:test  :TYPE UNSPECIFIC
:info:test  :VERSION NEWEST") instead of evaluating to T
:info:test FAn error occurred during initialization:
:info:test #<a MONTEZUMA::TEST-FAILURE 0x109c8e880>.
:info:test Command failed: /opt/local/bin/ecl -q --eval '(require "asdf")' --eval '(setf asdf:*central-registry* (list* (quote *default-pathname-defaults*) #p"/opt/local/var/macports/build/_Users_catap_src_macports-ports_lisp_cl-montezuma/cl-montezuma/work/build/system/" #p"/opt/local/share/common-lisp/system/" asdf:*central-registry*))' --eval '(asdf:operate (quote asdf:test-op) (quote montezuma))' 2>&1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.