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 236840 - Add possibility to filter values matching the query
Summary: Add possibility to filter values matching the query
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-07 14:50 UTC by Petr Pisl
Modified: 2015-01-14 14:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2013-10-07 14:50:34 UTC
The QuerySupport class has a method query that returns IndexResult. The IndexResult corresponds with the document, where the fields pass a condition defined as parameters of query method. Sometimes documents have more fields with the same name but only one match the condition. The issue is that all fields from the document are returned in the IndexResult and client has to filter the right field. 

Example: A document has field "controller" and a document contains:

Controller: First
Controller: Second
Controller: Third

When the query method is executed over the index and the parameters are: query type PREFIX and the prefix is "Sec", then the IndexResult contains as values all three controller fields from the document. I have to go trough the all values from the IndexResult and filter them to find the right controller. It means that I have to implement the same, what is in the QuerySupport already implemented.
Comment 1 Petr Pisl 2015-01-14 14:11:34 UTC
Raising to P2. It could help to improve performance of the javascript support.