[TR-176] Allow abitrary context objects in SearchRequest Created: 31/Aug/11  Updated: 22/May/12  Resolved: 22/May/12

Status: Resolved
Project: Terrier Core
Component/s: .querying
Affects Version/s: 3.5
Fix Version/s: 3.6

Type: Improvement Priority: Major
Reporter: Greg Maksa Assignee: Dyaa Albakour
Resolution: Fixed  
Labels: None

Attachments: File TR-176.v1.patch    

Hi All,

I propose the following changes to the SearchRequest interface:

* * *

void setContext(String Name, Object Value);
Object getContext(String Name);

* * *

As I have faced with the growing demand for more and more complex Control Parameters during my development I figured that rather than trying to squeeze everything into a simple Parameter String with setControl(String Name,String Value) method it would be much more simple to extend the interface with the abovementioned pair of methods

Not only would they provide greater flexibility and speed increase when passing information between components but later changes could be carried out much easier.

Should you have any queries on this please feel free to mail me.



Comment by Dyaa Albakour [ 21/May/12 ]

This patch contains a modification of the SearchRequest interface and the Request class to allow attaching context object as well as control strings

Comment by Craig Macdonald [ 22/May/12 ]

Committed to trunk r3616.

Generated at Sun Sep 23 01:54:42 BST 2018 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.