Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-907
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Daniel Pavel
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

DefaultLuceneSearchEngineStore.createIndex uses a deprecated IndexWriter constructor, which forces autocommit to true

Created: 23/Nov/09 01:13 PM   Updated: 04/Dec/09 03:51 AM
Component/s: Compass::Core
Affects Version/s: 2.2.0 GA
Fix Version/s: 2.3.0 beta1

Environment: jdbc/c3p0 connection to Postgres 8.3

 Description  « Hide
DefaultLuceneSearchEngineStore:502 – uses a deprecated IndexWriter constructor
it forces autocommit to true when first creating the index, which fails on Postgres

the line:

IndexWriter indexWriter = new IndexWriter(dir, new StandardAnalyzer(), true);

should probably be replaced with

IndexWriter indexWriter = new IndexWriter(dir, new StandardAnalyzer(), true, IndexWriter.DEFAULT_MAX_FIELD_LENGTH);

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon made changes - 04/Dec/09 03:51 AM
Field Original Value New Value
Status Open [ 1 ] Closed [ 6 ]
Fix Version/s 2.3.0 beta1 [ 10174 ]
Resolution Fixed [ 1 ]