[
http://mifosforge.jira.com/browse/MIFOS-2711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kay Chau updated MIFOS-2711:
----------------------------
Jakub's research:
Hi,
currently Mifos do not support results containing multiple types (like accounts
and clients for example). As you can see on the following code snippet (taken
from CustomerPersistence.search() method):
queryResult = new AccountPersistence().search(searchString,
officeId);
if (queryResult == null) {
queryResult = idSearch(searchString, officeId, userId);
if (queryResult == null) {
queryResult = mainSearch(searchString, officeId, userId,
userOfficeId);
}
}
the search algorithm can return only:
1. accounts, when the account number matches given searchString 2. when there
is no accounts found, algorithm looks for customers using their system ID 3.
when there is no customers found, algorithm try once again to search for
customers, but looks at their name fields this time.
In that case, just update the search to do add step between #2 and #3. So the
new search algorithm should be:
1. accounts, when the account number matches given searchString 2. when there
is no accounts found, algorithm looks for customers using their system ID 3.
when there are no customers found, algorithm should search for government ID in
clients. 4. when there is again no clients found, algorithm try once again to
search for customers, but looks at their name fields this time.
This means we're ignoring that the government ID could be the same as an
account or customer ID. Those should just show up first. Results should be
same display as client search results.
Also, Jakub, when you add this, can you do some analysis on how this might
affect performance on Search especially for large databases (300k clients, 500k
clients, etc)
> Add ability to search by Government ID
> --------------------------------------
>
> Key: MIFOS-2711
> URL: http://mifosforge.jira.com/browse/MIFOS-2711
> Project: mifos
> Issue Type: New Feature
> Components: Search
> Affects Versions: Release 1.4
> Reporter: Kay Chau
> Assignee: jslawinski
>
> Currently in Mifos, in the Search box that shows up both under the Home tab
> and the Clients & Accounts tab, you can search by name, system ID or account
> number.
> We want to add the ability to search by a client's "Government ID". This ID
> can be renamed under "Define Labels" in Mifos. Currently this ID can be
> added when you create a client or editing a client that hasn't been active
> yet.
> For this feature, add searching by that field. The search results UI should
> be the same as when you search by client's Mifos system ID currently.
> On the test server, try searching for 0015-000000100 to see what should show
> up.
> When searching by Government ID, the results should still be:
> x results for <Government ID> in All Branches
> where x is the number of results and <Government ID> is the search term.
> The results that match should show the same as when searching by client ID
> For example:
> Client: sakuntala behera: ID 0015-000000100
> Status: Active Loan Officer: siba prasad behera
> Loan: Account # 000100000000311
> Note that in the search results, the Government ID won't be in the actual
> search results. This is fine, and we will add that as a separate enhancement.
> Another thing to note - it is possible that a Government ID could be the same
> as a Mifos client ID or even loan account since they're not mutually
> exclusive. That is fine, and the expected result is that all search results
> that match that number would be displayed.
> Leave the string that describes the Search box as is. We'll add another
> enhancement to update that string correctly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues