This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 176706

Summary: index always returns ALL index document for QuerySupport.Kind.PREFIX for fieldValue "" even if they do not have the searched field
Product: editor Reporter: Marek Fukala <mfukala>
Component: Parsing & IndexingAssignee: Vitezslav Stejskal <vstejskal>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description Marek Fukala 2009-11-12 10:00:45 UTC
QuerySupport.query(JsfBinaryIndexer.FACELETS_LIB_NAMESPACE_KEY, "", QuerySupport.Kind.PREFIX, JsfBinaryIndexer.FACELETS_LIB_NAMESPACE_KEY);

Returns me IndexResult for files which do not contain such field.

This seems to be odd to me. I would expect the only document containing the searched field would be returned.
Comment 1 Marek Fukala 2009-11-13 07:33:22 UTC
I've worked around that gracefully already so no need for fix it a just before CF if not 110% safe :-)
Comment 2 Vitezslav Stejskal 2010-01-12 08:44:04 UTC
http://hg.netbeans.org/jet-main/rev/86b8258ba2b3
Comment 3 Quality Engineering 2010-01-13 12:28:03 UTC
Integrated into 'main-golden', will be available in build *201001131418* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/86b8258ba2b3
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #176706: allowing to search for documents that contain a specifc field (field's value does not matter)