sharplispers / montezuma Goto Github PK
View Code? Open in Web Editor NEWFull-text indexing and search for Common Lisp
License: MIT License
Full-text indexing and search for Common Lisp
License: MIT License
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 :)
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.
Hi,
I first saw this repo https://github.com/skypher/montezuma/ and then yours. It looks like you forked him and commited 6 bug fixes since. Is that what happened, any plan to merge the two libs ?
Regards.
In https://github.com/sharplispers/montezuma/blob/master/src/search/sort-field.lisp#L42
sort-type is missing.
Please consider adding :description, :author and :license information to your ASDF system. This will greatly help Quicklisp users and make it easier for them to report bugs.
More information:
http://blog.quicklisp.org/2015/05/looking-for-more-metadata.html
https://www.quicklisp.org
I've been experimenting with using montezuma for archiving Slack messages in a long-running slackbot. I've noticed that, over an extended period of time memory usage increases until I run out of heap.
My code looks like this:
https://github.com/fiddlerwoaroof/slacker/blob/master/montezuma-store.lisp#L32-L43
https://github.com/fiddlerwoaroof/slacker/blob/master/montezuma-store.lisp#L32-L43
: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
Hi,
Fuzzy Search (fuzzy queries) is not implemented yet, as far as I can see.
Ruby's ferret did support fuzzy queries:
https://github.com/dbalmain/ferret/search?q=fuzzy&unscoped_q=fuzzy
I wonder if somebody has a working prototype of FQ for Montezuma.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.