http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/test/test_indexer.py Mercurial Repository: p/roundup/code: test/test_indexer.py history 2024-04-25T18:34:37-04:00 issue2551334 - get more tests working under windows http://hg.code.sf.net:8000/p/roundup/code/#changeset-94aafe3b0a0dd8cc682434f1c81f214da41283d4 John Rouillard rouilj@ieee.org 2024-04-25T18:34:37-04:00 2024-04-25T18:34:37-04:00
changeset 94aafe3b0a0d
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description issue2551334 - get more tests working under windows

Fix indexer tests for file based db's running under windows.

Apparently if there is an open/uncommitted cursor sqlite3db.close()
doesn't actually close the file under windows. Because these tests
run isolated indexer functions, the commits aren't done in
the code under test.
files
test: fix test_indexer for change from list to tuples in config. http://hg.code.sf.net:8000/p/roundup/code/#changeset-5be92f16a6841ab841611ff308dce05b42c5b4e8 John Rouillard rouilj@ieee.org 2024-03-31T01:44:48-04:00 2024-03-31T01:44:48-04:00
changeset 5be92f16a684
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: fix test_indexer for change from list to tuples in config.
files
fix: close file properly in indexer_dbm.py:save_index() http://hg.code.sf.net:8000/p/roundup/code/#changeset-d17e57220a62416fcd192199cf29ca48db3af1a4 John Rouillard rouilj@ieee.org 2023-11-02T18:55:47-04:00 2023-11-02T18:55:47-04:00
changeset d17e57220a62
branch
bookmark
tag 2.3.1a0
user John Rouillard <rouilj@ieee.org>
description fix: close file properly in indexer_dbm.py:save_index()

Fix this error found in debug logs of gentoo packaging of round 2.2.0.

/roundup/backends/indexer_dbm.py:253: ResourceWarning: unclosed file
<_io.BufferedWriter name='test-index/indexes/index.db-'>
open(self.indexdb+'-', 'wb').write(zlib.compress(marshal.dumps(dbfil)))

Also added test that calls save_index(), reloads the index and tests
that the original item. I am not sure how Gentoo hit
this But they were missing a number of backends. So it's possible that
indexer_dbm.py is not getting fully tested depending on what is
installed on the system. Codecov from CI didnt show
indexer_dbm.py:save_index() being covered.
files
test: fix sqlite indexer test http://hg.code.sf.net:8000/p/roundup/code/#changeset-67e7225c43438a9a49033e0a70c12a4ea15ef833 John Rouillard rouilj@ieee.org 2022-11-24T10:00:59-05:00 2022-11-24T10:00:59-05:00
changeset 67e7225c4343
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: fix sqlite indexer test

Had an import psycopg2 that was not neded or used. It shouldn't
have been there. Probbly bad copy/paste.

Also remove @skip_postgres that isn't needed now.
files
Add a missing @skip_postgresql http://hg.code.sf.net:8000/p/roundup/code/#changeset-890b8f4ff38efaff21d3c739980adade9291d1d6 Ralf Schlatterbeck rsc@runtux.com 2022-11-24T10:41:54+01:00 2022-11-24T10:41:54+01:00
changeset 890b8f4ff38e
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Add a missing @skip_postgresql
files
Compatibility: unittest.mock vs. only mock http://hg.code.sf.net:8000/p/roundup/code/#changeset-c6b2534a58a98b391675b0ab191b3cc59709ad93 Ralf Schlatterbeck rsc@runtux.com 2022-11-24T10:29:37+01:00 2022-11-24T10:29:37+01:00
changeset c6b2534a58a9
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Compatibility: unittest.mock vs. only mock

Python3 has unittest.mock while python2 has only mock. At least on the
systems tested (with installed unittest).
files
postgresql native-fts; more indexer tests http://hg.code.sf.net:8000/p/roundup/code/#changeset-9ff091537f43346776e45c325be77f43beb43970 John Rouillard rouilj@ieee.org 2022-09-05T16:25:20-04:00 2022-09-05T16:25:20-04:00
changeset 9ff091537f43
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description postgresql native-fts; more indexer tests

1) Make postgresql native-fts actually work.
2) Add simple stopword filtering to sqlite native-fts indexer.
3) Add more tests for indexer_common get_indexer


Details:

1) roundup/backends/indexer_postgresql_fts.py:

ignore ValueError raised if we try to index a string with a null
character in it. This could happen due to an incorrect text/ mime
type on a file that has nulls in it.

Replace ValueError raised by postgresql with customized
IndexerQueryError if a search string has a null in it.

roundup/backends/rdbms_common.py:

Make postgresql native-fts work. When specified it was using using
whatever was returned from get_indexer(). However loading the
native-fts indexer backend failed because there was no connection to
the postgresql database when this call was made.

Simple solution, move the call after the open_connection call in
Database::__init__().

However the open_connection call creates the schema for the
database if it is not there. The schema builds tables for
indexer=native type indexing. As part of the build it looks at the
indexer to see the min/max size of the indexed tokens. No indexer
define, we get a crash.

So it's a a chicken/egg issue. I solved it by setting the indexer
to the Indexer from indexer_common which has the min/max token size
info. I also added a no-op save_indexer to this Indexer class. I
claim save_indexer() isn't needed as a commit() on the db does all
the saving required. Then after open_connection is called, I call
get_indexer to retrieve the correct indexer and
indexer_postgresql_fts woks since the conn connection property is
defined.

roundup/backends/indexer_common.py:

add save_index() method for indexer. It does nothing but is needed
in rdbms backends during schema initialization.

2) roundup/backends/indexer_sqlite_fts.py:

when this indexer is used, the indexer test in DBTest on the word
"the" fail. This is due to missing stopword filtering. Implement
basic stopword filtering for bare stopwords (like 'the') to make the
test pass. Note: this indexer is not currently automatically run by
the CI suite, it was found during manual testing. However there is a
FIXME to extract the indexer tests from DBTest and run it using this
backend.

roundup/configuration.py, roundup/doc/admin_guide.txt:

update doc on stopword use for sqlite native-fts.

test/db_test_base.py:

DBTest::testStringBinary creates a file with nulls in it. It was
breaking postgresql with native-fts indexer. Changed test to assign
mime type application/octet-stream that prevents it from being
processed by any text search indexer.

add test to exclude indexer searching in specific props. This code
path was untested before.


test/test_indexer.py:

add test to call find with no words. Untested code path.

add test to index and find a string with a null \x00 byte. it was
tested inadvertently by testStringBinary but this makes it explicit
and moves it to indexer testing. (one version each for: generic,
postgresql and mysql)

Renamed Get_IndexerAutoSelectTest to Get_IndexerTest and renamed
autoselect tests to include autoselect. Added tests for an invalid
indexer and using native-fts with anydbm (unsupported combo) to make
sure the code does something useful if the validation in
configuration.py is broken.

test/test_liveserver.py:

add test to load an issue

add test using text search (fts) to find the issue

add tests to find issue using postgresql native-fts

test/test_postgresql.py, test/test_sqlite.py:

added explanation on how to setup integration test using native-fts.

added code to clean up test environment if native-fts test is run.
files
test get_indexer three autosearch options: xapian, whoosh, native http://hg.code.sf.net:8000/p/roundup/code/#changeset-a23eaa3013e6cb1f557963bb408a8537b1c3d17e John Rouillard rouilj@ieee.org 2022-09-03T22:35:09-04:00 2022-09-03T22:35:09-04:00
changeset a23eaa3013e6
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test get_indexer three autosearch options: xapian, whoosh, native
files
Improve test coverage of backends/indexer_common::get_indexer() method http://hg.code.sf.net:8000/p/roundup/code/#changeset-86cde9cae7e1a5df84b6dcab07540eff84cdc34f John Rouillard rouilj@ieee.org 2022-09-03T21:33:12-04:00 2022-09-03T21:33:12-04:00
changeset 86cde9cae7e1
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Improve test coverage of backends/indexer_common::get_indexer() method
files
fix postgresl-fts indexer: get_indexer reported not implemented http://hg.code.sf.net:8000/p/roundup/code/#changeset-3260926d7e7e4a0729532e31358eb69d4b2495cf John Rouillard rouilj@ieee.org 2022-09-03T17:58:41-04:00 2022-09-03T17:58:41-04:00
changeset 3260926d7e7e
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix postgresl-fts indexer: get_indexer reported not implemented

When I implemented postgresql fts indexing I forgot to remove code
that raised NotImplemented when it was requested. Also had to fix
import to match filename.

Added tests for native-fts paths in get_indexer.
files
Allow Roundup to use PostgreSQL database native full text search http://hg.code.sf.net:8000/p/roundup/code/#changeset-0d99ae7c8de62fdc4561e7f0a8a6b38da86e34cd John Rouillard rouilj@ieee.org 2022-01-27T19:48:48-05:00 2022-01-27T19:48:48-05:00
changeset 0d99ae7c8de6
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Allow Roundup to use PostgreSQL database native full text search

back_postgreql.py - schema version changes for schema version 7.

configuration.py - added indexer_language checks for postgresql. Hardcoded
list for now.

Docs admin_guide and upgrading

Tests.


This also restructures the version upgrade tests for the rdbms
backends. They can run all of them now as the proper cascade is
developed to roll back changes to version 6.
files
issue2551189 - increase size of words in full text index. http://hg.code.sf.net:8000/p/roundup/code/#changeset-39189dd94f2cc9d0b460685b20b3fc077d59f7ec John Rouillard rouilj@ieee.org 2022-01-26T15:04:09-05:00 2022-01-26T15:04:09-05:00
changeset 39189dd94f2c
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description issue2551189 - increase size of words in full text index.

Increased indexed word maxlength to 50

DB migration code is written and tests work.

Restructured some tests to allow for code reuse.

Docs.

If this passes CI without errors 2551189 should be done. However,
testing on my system generates errors. Encoding (indexer unicode
russian unicode string invalid) and collation errors (utf8_bin not
valid) when running under python2. No issues with python3 and I
haven't changed code that should cause these since the last successful
build in CI. So if this fails in CI we will have more checkins.
files
Summary: Add test cases for sqlite fts http://hg.code.sf.net:8000/p/roundup/code/#changeset-91ab3e0ffcd0d5550274ffda207241843ee6a545 John Rouillard rouilj@ieee.org 2022-01-23T18:57:45-05:00 2022-01-23T18:57:45-05:00
changeset 91ab3e0ffcd0
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Summary: Add test cases for sqlite fts

Add support for using the FTS5 full text query engine for sqlite.

Also stubbed out some sections for adding postgresql FTS support as
well.

Added nee indexer type native-fts. It is not selected by default. The
indexer=native is used if no indexer is set. This prevents an upgrade
from seeming to wipe out the native index if upgraded and
indexer=native is not explicitly set.

Docs updated. Also changed section headers to sentence case for the
current release notes.

Indexing backend can control if the full text search phrase is broken
into a list of words or passed intact. For backends with query
languages (sqlite and can be enabled for whoosh and xapian) we do not
want the phrase "tokenized" on whitespace.

This also updates the rdbms database version to version 7 to add FTS
table. I will be using the same version when I add postgresql. If
somebody runs this version on postgresql, they will have to manually
add the fts tables for postgresql if they want to use it.

Added a new renderError method to client. This allows errors to be
reported still using page.html rather than raw html. It also supports
templates for any error code. If no template for the error code
(e.g. 400) is found, the error in raw html with no page frame is
shown.

New IndexerQueryError exception to pass back message about query syntax
errors.
files
issue2551123 - validate indexer_language in configuration.py http://hg.code.sf.net:8000/p/roundup/code/#changeset-c26b9ce33ae3962dab1cc0ea7fa6b19b87adef5a John Rouillard rouilj@ieee.org 2021-03-29T22:47:54-04:00 2021-03-29T22:47:54-04:00
changeset c26b9ce33ae3
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description issue2551123 - validate indexer_language in configuration.py

Was validated in backends/indexer_xapian.py which would throw
an error on access rather than on start.

Added validator function to CoreConfig class that runs after
config.ini is read. At this time we have access to the indexer setting
so can determine if xapian is actually going to be used.

Moved test into test/test_config.py and pulled validation code from
indexer_xapian.py and test/test_indexer.py.
files
Add indexer_language to change stemmer for xapian FTS indexer http://hg.code.sf.net:8000/p/roundup/code/#changeset-9d209d2b34ae0607339a4029a924f309a69c5f50 John Rouillard rouilj@ieee.org 2021-03-28T23:34:43-04:00 2021-03-28T23:34:43-04:00
changeset 9d209d2b34ae
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Add indexer_language to change stemmer for xapian FTS indexer

Nagy Gabor asked how to enable the hungarian stemmer in roundup. This
required editing indexer_xapian.py replacing hardcoded "english"
term. This value is now exposed in the config file under [main]
index_language.

This only works for xapian currently.
files
Fix xapian indexer for unicode http://hg.code.sf.net:8000/p/roundup/code/#changeset-5bf7b5debb090de949fdd3dd4023161b73e3df66 John Rouillard rouilj@ieee.org 2019-10-30T17:56:18-04:00 2019-10-30T17:56:18-04:00
changeset 5bf7b5debb09
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Fix xapian indexer for unicode

Make regular expression pattern match words as unicode.
files
Fix russian search/string http://hg.code.sf.net:8000/p/roundup/code/#changeset-6137ea8454385c71d266715cc384f65855814aa2 John Rouillard rouilj@ieee.org 2019-10-29T22:13:49-04:00 2019-10-29T22:13:49-04:00
changeset 6137ea845438
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Fix russian search/string

russian string is supposed to be two words. Use only 1 of the words
with find().
files
Add a russian string for unicode testing of indexer http://hg.code.sf.net:8000/p/roundup/code/#changeset-f6c58a7b535cf1eafbf6cd2842f16eedfae4e070 John Rouillard rouilj@ieee.org 2019-10-29T22:01:11-04:00 2019-10-29T22:01:11-04:00
changeset f6c58a7b535c
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Add a russian string for unicode testing of indexer

Also assign strings to vars to make it easier to mix/match tests in
the future.
files
Add test for issue1344046 and maybe issue1195739 http://hg.code.sf.net:8000/p/roundup/code/#changeset-0db2621b6fee8eee1a828e49ffcc051b8f50aa4b John Rouillard rouilj@ieee.org 2019-10-29T21:33:10-04:00 2019-10-29T21:33:10-04:00
changeset 0db2621b6fee
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Add test for issue1344046 and maybe issue1195739

Python3 should be properly indexing unicode words while python2
doesn't. Add test (xfail for python 2) for this. So far I have passing
on python3 (tested 4 of 6 indexers) and fail on 2 of 6 and xpass on 2
of 6 under python2.
files
assert_ is depricated. Replacing with assertTrue to reduce logs in travisci. http://hg.code.sf.net:8000/p/roundup/code/#changeset-f8893e1cde0d05513a328bd4698dac10d94805b3 John Rouillard rouilj@ieee.org 2019-03-15T20:29:00-04:00 2019-03-15T20:29:00-04:00
changeset f8893e1cde0d
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description assert_ is depricated. Replacing with assertTrue to reduce logs in travisci.
files
Python 3 preparation: make relative imports explicit. http://hg.code.sf.net:8000/p/roundup/code/#changeset-d26921b851c328681aa6638475ce2cdae29963b4 Joseph Myers jsm@polyomino.org.uk 2018-07-24T22:22:08+00:00 2018-07-24T22:22:08+00:00
changeset d26921b851c3
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: make relative imports explicit.

Tool-generated patch.
files
Improved work-around for pytest markers bug http://hg.code.sf.net:8000/p/roundup/code/#changeset-43a1f7fe39f502d3dc1ba5c560a81a629c924619 John Kristensen john@jerrykan.com 2016-06-28T15:39:38+10:00 2016-06-28T15:39:38+10:00
changeset 43a1f7fe39f5
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Improved work-around for pytest markers bug

The previous fix was only a partial solution. Any test class sharing a
parent with, and appearing after, a skipped test class was being skipped
(not just other test classes using the skip/skipif marker). Now only
tests that should be skipped will be skipped, the rest should run as
normal.
files
Fix work-around for pytest markers bug http://hg.code.sf.net:8000/p/roundup/code/#changeset-37d1e24fb941044d39cfdd59449155eeee154b65 John Kristensen john@jerrykan.com 2016-06-27T14:03:32+10:00 2016-06-27T14:03:32+10:00
changeset 37d1e24fb941
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Fix work-around for pytest markers bug

The initial work-around implemented was totally botched using
'pytest.skip' instead of 'pytest.mark.skip' which resulted in all tests
in a file being completely ignored if any skip conditions that evaluated
to true were declared or imported in the file.

This work-around will not correctly display why all the tests have been
skipped when using the '-rs' parameter. Only the first skip marker to
taint a parent test class will be displayed (ie. if both xapian and
mysql tests are being skipped, pytest will only output that tests are
being skipped because xapian is not installed even though the mysql
tests are also being skipped because mysql backend is not available).

There also seems to be a bug in the current version of pytest being used
in 'run_tests.py' (v2.8.4) that results in the skip not actually working
when using 'pytest.mark.skip'. This does work correctly with the most
recent release (v2.9.2), so the 'run_tests.py' script will need to be
updated.
files
- issue2550636, issue2550909: Added support for Whoosh indexer. http://hg.code.sf.net:8000/p/roundup/code/#changeset-e74c3611b1387156cc22a7e18d0d5048b6961f8a John Rouillard rouilj@ieee.org 2016-06-25T20:10:03-04:00 2016-06-25T20:10:03-04:00
changeset e74c3611b138
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description - issue2550636, issue2550909: Added support for Whoosh indexer.
Also adds new config.ini setting called indexer to select
indexer. See ``doc/upgrading.txt`` for details. Initial patch
done by David Wolever. Patch modified (see ticket or below for
changes), docs updated and committed.

I have an outstanding issue with test/test_indexer.py. I have to
comment out all imports and tests for indexers I don't have (i.e.
mysql, postgres) otherwise no tests run.

With that change made, dbm, sqlite (rdbms), xapian and whoosh indexes
are all passing the indexer tests.

Changes summary:
1) support native back ends dbm and rdbms. (original patch only fell
through to dbm)
2) Developed whoosh stopfilter to not index stopwords or words outside
the the maxlength and minlength limits defined in index_common.py.
Required to pass the extremewords test_indexer test. Also I
removed a call to .lower on the input text as the tokenizer I chose
automatically does the lowercase.
3) Added support for max/min length to find. This was needed to pass
extremewords test.
4) Added back a call to save_index in add_text. This allowed all but
two tests to pass.
5) Fixed a call to:
results = searcher.search(query.Term("identifier", identifier))
which had an extra parameter that is an error under current whoosh.
6) Set limit=None in search call for find() otherwise it only return
10 items. This allowed it to pass manyresults test

Also due to changes in the roundup code removed the call in
indexer_whoosh to

from roundup.anypy.sets_ import set

since we use the python builtin set.
files
Work-around for pytest.mark.skipif() bug http://hg.code.sf.net:8000/p/roundup/code/#changeset-c977f3530944c9adf85594092b8caff9c13889fd John Kristensen john@jerrykan.com 2015-09-07T23:24:33+10:00 2015-09-07T23:24:33+10:00
changeset c977f3530944
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Work-around for pytest.mark.skipif() bug

There is a pytest bug that can cause all test classes marked with the
skipif() decorator that inherit a common class to be skipped if one of
the skipif() conditions is True. See:

https://github.com/pytest-dev/pytest/issues/568
files
Remove unneeded TestSuite code from tests http://hg.code.sf.net:8000/p/roundup/code/#changeset-364c549918613cff81c3ebe07aee4025e0ef3fcc John Kristensen john@jerrykan.com 2015-08-21T13:08:02+10:00 2015-08-21T13:08:02+10:00
changeset 364c54991861
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Remove unneeded TestSuite code from tests

The TestSuite code is no longer needed now that we are using py.test
which can automatically discover tests
files
Replace existing run_tests.py script with a pytest script http://hg.code.sf.net:8000/p/roundup/code/#changeset-380d8d8b30a3b0dca517fb242809703963a00588 John Kristensen john@jerrykan.com 2015-08-20T18:15:23+10:00 2015-08-20T18:15:23+10:00
changeset 380d8d8b30a3
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Replace existing run_tests.py script with a pytest script

The existing run_test.py script is quite old, a bit restrictive, and
doesn't always behave as documented. The pytest testing tool is mature,
well documented, and maintained.

The run_tests.py script is generating by installing py.test and running:

py.tests --genscript=run_tests.py

Note: to generate a script that is compatible with python2.6 the command
needs to be run using python2.6
files
Update tests to work with py.test http://hg.code.sf.net:8000/p/roundup/code/#changeset-63c79c0992aeb805fbed74a82881d2eb32bbb70d John Kristensen john@jerrykan.com 2015-08-20T14:44:49+10:00 2015-08-20T14:44:49+10:00
changeset 63c79c0992ae
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Update tests to work with py.test

py.test searches for any class that looks like a TestCase in the test
directory and tries to run them as tests. Some of the classes that
inherit TestCase are not meant to be run and are only intended to be
"helper classes". Only the tests of the classes that inherit the "helper
classes" should be run. If we convert these "helper classes" to be
"mixins" py.test should not pick them up.
files
issue2550583, issue2550635 Do not limit results with Xapian indexer http://hg.code.sf.net:8000/p/roundup/code/#changeset-3ff1a288fb9c773fa27397e89252bbb0a9cc01c8 Thomas Arendsen Hein thomas@intevation.de 2013-10-21T12:56:28+02:00 2013-10-21T12:56:28+02:00
changeset 3ff1a288fb9c
branch
bookmark
tag
user Thomas Arendsen Hein <thomas@intevation.de>
description issue2550583, issue2550635 Do not limit results with Xapian indexer

Other indexer backends do not limit the number of results.

Add test with searching for 123 entries on all backends, more should not
be used, because the slower backends would take too much time.

enquire.get_mset was limited to 10 results and since the results can be
messages instead of issues, the 10 results could even be just one issue if
there were many messages matching the search term before searching the
messages of other issues.

Additionally the few results could be filtered by other attributes, e.g.
only showing open issues, which caused even less matches.
files
Remove keyword expansions from CVS. All regression tests passed afterwards. http://hg.code.sf.net:8000/p/roundup/code/#changeset-6e3e4f24c75376f61ae0bf0e9ee334567585c38e Eric S. Raymond esr@thyrsus.com 2011-11-16T09:51:38-05:00 2011-11-16T09:51:38-05:00
changeset 6e3e4f24c753
branch
bookmark
tag
user Eric S. Raymond <esr@thyrsus.com>
description Remove keyword expansions from CVS. All regression tests passed afterwards.
files
- add a small word-splitting test for the indexers... http://hg.code.sf.net:8000/p/roundup/code/#changeset-b41a033bffcce6c12aa6836639a643c3363597b0 Ralf Schlatterbeck schlatterbeck@users.sourceforge.net 2009-12-27T21:18:48+00:00 2009-12-27T21:18:48+00:00
changeset b41a033bffcc
branch
bookmark
tag
user Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
description - add a small word-splitting test for the indexers...

when answering an mailinglist-mail concerning indexer behaviour
files
Added more indexer tests for stopwords, case-insensitity... http://hg.code.sf.net:8000/p/roundup/code/#changeset-2b1241daaa200a7e413e1883655be1560044ec56 Bernhard Reiter Bernhard.Reiter@intevation.de 2009-09-11T15:37:24+00:00 2009-09-11T15:37:24+00:00
changeset 2b1241daaa20
branch
bookmark
tag
user Bernhard Reiter <Bernhard.Reiter@intevation.de>
description Added more indexer tests for stopwords, case-insensitity...

...and short and long words.
files
fix unit test compatibility http://hg.code.sf.net:8000/p/roundup/code/#changeset-dcca66d568157c1f9a5a3405eafa24d018711bf6 Richard Jones richard@users.sourceforge.net 2009-03-13T03:31:30+00:00 2009-03-13T03:31:30+00:00
changeset dcca66d56815
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description fix unit test compatibility
files
now I understand the comment in that method... http://hg.code.sf.net:8000/p/roundup/code/#changeset-96a5e0845adb1582e9e177ae5660bdf07bbd7471 Ralf Schlatterbeck schlatterbeck@users.sourceforge.net 2008-09-11T19:10:30+00:00 2008-09-11T19:10:30+00:00
changeset 96a5e0845adb
branch
bookmark
tag
user Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
description now I understand the comment in that method...

...after my change it failed for python2.5. Now it works for all of them.
files
fix for indexer-test: http://hg.code.sf.net:8000/p/roundup/code/#changeset-6eec11b197aa032e9de06ca28cde2bb11489dd3c Ralf Schlatterbeck schlatterbeck@users.sourceforge.net 2008-09-11T18:48:07+00:00 2008-09-11T18:48:07+00:00
changeset 6eec11b197aa
branch
bookmark
tag
user Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
description fix for indexer-test:

Old version fails for me on Debian Etch with sqlite 2.8.17-2.
files
fix bug introduced in 1.4.5 in RDBMS full-text indexing; http://hg.code.sf.net:8000/p/roundup/code/#changeset-0bf9f8ae7d1b40e13d2c0c9b6208ce2a386ccf39 Richard Jones richard@users.sourceforge.net 2008-09-01T00:43:02+00:00 2008-09-01T00:43:02+00:00
changeset 0bf9f8ae7d1b
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description fix bug introduced in 1.4.5 in RDBMS full-text indexing;

fix tests so the code is actually exercised; fix another bug
discovered in process
files
fix reindexing in Xapian http://hg.code.sf.net:8000/p/roundup/code/#changeset-7728ee93efd2651a3c45504ad2f9fbc4b75250aa Richard Jones richard@users.sourceforge.net 2006-02-07T04:59:05+00:00 2006-02-07T04:59:05+00:00
changeset 7728ee93efd2
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description fix reindexing in Xapian
files
test fixes and checking of indexer overwrites (xapian currently fails) http://hg.code.sf.net:8000/p/roundup/code/#changeset-a4edd24c32be9488f268939e1efaab72691a5615 Richard Jones richard@users.sourceforge.net 2006-02-07T04:14:32+00:00 2006-02-07T04:14:32+00:00
changeset a4edd24c32be
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description test fixes and checking of indexer overwrites (xapian currently fails)
files
some more Xapian stuff (doc, test fixes) http://hg.code.sf.net:8000/p/roundup/code/#changeset-8f7dc283bfa554aa4a55bb785ded5471c35e66a8 Richard Jones richard@users.sourceforge.net 2005-04-28T09:06:09+00:00 2005-04-28T09:06:09+00:00
changeset 8f7dc283bfa5
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description some more Xapian stuff (doc, test fixes)
files
added Xapian indexer; replaces standard indexers if Xapian is available http://hg.code.sf.net:8000/p/roundup/code/#changeset-a615cc230160194d3b64a5a584c64bade7c9def7 Richard Jones richard@users.sourceforge.net 2005-04-28T00:21:42+00:00 2005-04-28T00:21:42+00:00
changeset a615cc230160
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description added Xapian indexer; replaces standard indexers if Xapian is available
files
Fix test to account for changed interface to find(). http://hg.code.sf.net:8000/p/roundup/code/#changeset-2fee3612847176ad7bbd46588ea70d27d8f5bca5 Johannes Gijsbers jlgijsbers@users.sourceforge.net 2005-01-05T22:28:32+00:00 2005-01-05T22:28:32+00:00
changeset 2fee36128471
branch
bookmark
tag
user Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
description Fix test to account for changed interface to find().
files
unit test fixes http://hg.code.sf.net:8000/p/roundup/code/#changeset-9c8de04a76b1ad1bfefe144d65b1bec5ed0b8ff0 Richard Jones richard@users.sourceforge.net 2004-11-29T02:55:47+00:00 2004-11-29T02:55:47+00:00
changeset 9c8de04a76b1
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description unit test fixes
files
[maint-0.7] unit test fixes http://hg.code.sf.net:8000/p/roundup/code/#changeset-0e1860dcb3287beae4c250f3593cb1ac74d52bea Richard Jones richard@users.sourceforge.net 2004-11-25T23:46:22+00:00 2004-11-25T23:46:22+00:00
changeset 0e1860dcb328
branch maint-0.7
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description unit test fixes
files
A few big changes in this commit: http://hg.code.sf.net:8000/p/roundup/code/#changeset-93f03c6714d8f6608f5dc4a75ab7ca3b0e7cdc67 Richard Jones richard@users.sourceforge.net 2004-03-19T04:47:59+00:00 2004-03-19T04:47:59+00:00
changeset 93f03c6714d8
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description A few big changes in this commit:

1. The current indexer has been moved to backends/indexer_dbm in
anticipation of my writing an indexer_rdbms,
2. Changed indexer invocation during create / set to follow the pattern
set by the metakit backend, which was much cleaner, and
3. The "content" property of FileClass is now mutable in all but the
metakit backend.

Metakit needs to be changed to support the editing of "content". Hey, and
I learnt today that the metakit backend implements its own indexer. How
about that... :)
files
Backend improvements. http://hg.code.sf.net:8000/p/roundup/code/#changeset-f63aa57386b0b2c50eb311d6b407a12e9b5e45db Richard Jones richard@users.sourceforge.net 2003-10-25T22:53:26+00:00 2003-10-25T22:53:26+00:00
changeset f63aa57386b0
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description Backend improvements.

- using Zope3's test runner now, allowing GC checks, nicer controls and
coverage analysis
- all RDMBS backends now have indexes on several columns
- added testing of schema mutation, fixed rdbms backends handling of a
couple of cases
- !BETA! added postgresql backend, needs work !BETA!
files
removed Log http://hg.code.sf.net:8000/p/roundup/code/#changeset-9b910e8d987d9c68848931f69cc57243f04e6dee Richard Jones richard@users.sourceforge.net 2002-09-10T00:19:55+00:00 2002-09-10T00:19:55+00:00
changeset 9b910e8d987d
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description removed Log
files
ehem, forgot to add http://hg.code.sf.net:8000/p/roundup/code/#changeset-2a928d404af87513ad95db2e6f24c6d985a43fb1 Richard Jones richard@users.sourceforge.net 2002-07-10T06:40:01+00:00 2002-07-10T06:40:01+00:00
changeset 2a928d404af8
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description ehem, forgot to add
files