Bug 38886 - [PATCH] MemValueIndexer Broken for starts-with query
Summary: [PATCH] MemValueIndexer Broken for starts-with query
Status: CLOSED FIXED
Alias: None
Product: Xindice
Classification: Unclassified
Component: DB Engine (show other bugs)
Version: cvs head (1.1)
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Xindice Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-07 17:57 UTC by Terry Rosenbaum
Modified: 2007-01-30 18:12 UTC (History)
0 users



Attachments
Patch to fix MemValueIndexer for starts-with queries (4.42 KB, patch)
2006-03-07 17:58 UTC, Terry Rosenbaum
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Terry Rosenbaum 2006-03-07 17:57:08 UTC
MemValueIndexer handles starts-with queries incorrectly.

Can prove using the
org.apache.xindice.integration.client.services.IndexedSearchTest.

To do this, look for tests with the string "starts-with" in their xpath.
Change the indexer type from "Value" to "MemValue".

Build/run integration tests.

Will fail.

Patch included.
Comment 1 Terry Rosenbaum 2006-03-07 17:58:13 UTC
Created attachment 17842 [details]
Patch to fix MemValueIndexer for starts-with queries
Comment 2 Vadim Gritsenko 2007-01-30 18:12:40 UTC
Added test, applied patch. Thanks!