Commit graph

26 commits

Author SHA1 Message Date
hns
9a98f81710 * Wrap example code in Html [pre] tag. 2006-11-27 12:32:36 +00:00
hns
602f420f18 * Implement get/setBinaryMode(boolean) to allow delivery of the
response body as byte array instead of as string.
* Use OutputStreamWriter instead of DataOutputStream for writing
  the request body.
2006-11-21 10:42:25 +00:00
grob
e36bbce6d3 changed Html.dropDown(): allow property "class" for specifying css class names if the option parameters are specified as object (using "value" and "display" properties) 2006-11-13 16:59:44 +00:00
grob
fe74d6e0ad * changed signature of addDocuments() - it's now possible to specify an optional mergeFactor
* bugfix in getField(): don't try to convert the string value into a date, since this possibly does the conversion even if it's not intended (it can happen that an id is converted into a date). therefor re-introduced the method getDateField()
2006-11-13 16:56:45 +00:00
grob
78eabaa7cb fixed bug in addField() that made it impossible to disable store, index and tokenize options for a field. 2006-10-23 18:56:36 +00:00
grob
bb0aebb02f updated lucene from 1.4.3 to 1.9.1 2006-09-29 13:51:37 +00:00
grob
5496bcfb04 * this library now expects Lucene version 1.9.1 (due to API changes in Lucene it currently doesn't work with version 2.0)
* added (most of) missing analyzers in Search.getAnalyzer()
* createIndex doesn't support a third argument for force-create an index anymore. to clear an index use its create() method instead
* Index now uses an IndexModifier instead of an IndexWriter in most cases
* to create a new Searcher instance now call index.getSearcher() or pass the index to search in as argument to the Searcher constructor
* checkWriteLock() is gone, instead getWriter() and getModifier() try for 2 seconds to return a writer/modifier. this should avoid concurrency problems
* Index.addIndexes() now takes a number of index directory arguments
* Index.create() now deletes all files in the directory (before it didn't)
* added checks for existing writer/modifier/reader before calling close()
* Index.getFieldNames() now returns a javascript array instead of a java object one
* Index.isLocked() doesn't create a reader anymore (before it did, but didn't use it)
* removed Index.getTerms() - if someone is missing that, shout
* Index.addDocument() now expects a single Document instance, for batch adding use the new method addDocuments()
* same with Index.removeDocument()
* added new method Index.updateDocument() that does removal and adding in one step (so the index is locked just once instead of two times)
* the wrapped lucene Query instance is now a public field - this saves from duplicating the getter method in every extending prototype
* Document.addField() now uses new DateTools class instead of the deprecated DateField utility methods
* removed Document.getDateField() since Document.getField() now handles dates as well
* added JSDoc compatible documentation
2006-09-29 13:49:40 +00:00
stefanp
e6d7fe7520 workaround for http://helma.org/bugs/show_bug.cgi?id=474 went into the wrong repository: changed the way the number of days is calculated. 2006-08-21 15:57:05 +00:00
p3k
7860cbdde2 * added String.NULL as constant containing the empty string ""
* added global- and HopObject-related macros to core
2006-08-06 11:27:56 +00:00
hns
50d4eb0d93 * Immediately convert java.io.File instance to absolute path names to
avoid the many pitfalls and gotchas of relative file names.
2006-07-25 20:07:59 +00:00
hns
bd8b266fa9 * Pass on return values from FTPClient class. Fixes bug 469. 2006-07-25 13:01:02 +00:00
p3k
b3c82d5a06 * added missing dontEnum() call for String.prototype.parseJSON
* shortened toJSONString() method to simply toJSON()
2006-07-24 17:18:52 +00:00
p3k
ef369a61bf initial check-in as adaptation of code at http://www.json.org/json.js 2006-07-24 17:09:23 +00:00
p3k
80b6083da7 added count, enbase64 as well as debase64 methods 2006-07-24 16:03:57 +00:00
p3k
971a740a0a * changed signature (it's more important to provide a database name than user and password)
* added var keyword before constants
* check user and password individually
* added execute() method
2006-07-18 15:09:36 +00:00
p3k
f2cc5103b4 * fixed decimal format in format method
* removed unnecessary condition in toPercent method
2006-07-18 08:24:59 +00:00
hns
29407f6444 * Apply patch from Stefan Rinner to set the Date header.
http://helma.org/pipermail/helma-user/2006-June/006547.html
2006-06-28 20:06:03 +00:00
grob
c41fed49cc - re-added forceCreate argument to createIndex() that was accidentally
removed
- changed addIndexes(): it now accepts a js-array containing
(ram/fs)directories, the conversion into a java array is done by the
method itself
- minor documentation and indentation fixes
2006-06-15 07:38:19 +00:00
hns
c82daee623 * Do not set buffer length in BufferedInputStream constructor, default lenght will do ok.
* Fix bug that potentially set compression level to NaN in Zip.add().
2006-06-02 15:46:20 +00:00
zumbrunn
620ce4c305 Fixed all.js to correctly reference core files 2006-05-30 18:34:31 +00:00
zumbrunn
6daa6c0794 Added Helma license notice 2006-04-24 08:27:00 +00:00
zumbrunn
36e9e09f7f changed keyword expansion 2006-04-24 07:19:11 +00:00
zumbrunn
ebf02d851d added all.js files as convenience SingleFileRepositories to load all the Javascript library files in modules/core and/or modules/helma 2006-04-24 07:18:45 +00:00
zumbrunn
478df4b853 changed keyword expansion 2006-04-24 07:02:17 +00:00
zumbrunn
66876ba214 initial commit of modules with javascript library structure for Helma 1.5 2006-04-24 06:58:02 +00:00
hns
72d15e11ab New repository initialized by cvs2svn. 2000-12-29 17:57:21 +00:00