search on words in program name not possible

Bug #387897 reported by Dan MacNeil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MVHub
In Progress
Medium
csmith

Bug Description

It should be possible to search on words in the name of a program.

Example: "Salem" or "Cyberspace"

Tags: gsoc
Dan MacNeil (omacneil)
Changed in mvhub:
status: New → Confirmed
Mansi (mansi)
Changed in mvhub:
assignee: nobody → Swetha (cswetha25)
importance: Medium → Low
tags: added: gsoc
Dan MacNeil (omacneil)
Changed in mvhub:
assignee: Swetha (cswetha25) → csmith (csmith-thecsl)
Dan MacNeil (omacneil)
Changed in mvhub:
importance: Low → Medium
status: Confirmed → In Progress
description: updated
Revision history for this message
Dan MacNeil (omacneil) wrote :

This is obvious but you should merge trunk. As of 10 minutes ago, there are (easy to resolve) conflicts with Steve's merged app-mvhub/conf/templates/html/search_results.tmpl

Revision history for this message
Dan MacNeil (omacneil) wrote :

Commit msgs don't have to list files

   bzr log -v

gives you files effected by a particular commit

Revision history for this message
Dan MacNeil (omacneil) wrote :

select char_length(agency_name) AS len,count(*) from agency group by char_length(agency_name) order by len DESC;

Revision history for this message
Dan MacNeil (omacneil) wrote :

should be : ' (....)' not '(...)'

+ $name .= $$program{program_alias} ? "($$program{program_alias})" : q//;

to:

+ $name .= $$program{program_alias} ? " ($$program{program_alias})" : q//;

...this is (a) very minor and (b) present in existing agency search, but I will create merge conflict if I fix it.

Revision history for this message
Dan MacNeil (omacneil) wrote :

A couple problems:

  1) If you search on 'food pantry' in mvh.csmith.testing123.net , you get
       (3) 'Food Pantry' entries under program.

  2) The three sets of results (agency, category, program) are a bit confusing.

So....

1) Disambiguate the program results by prepending the first 42 char of agency name (96% of agencies have names =< 42 char)

2) append "(main agency record)" to agency results

3) combine agency results with program results

4) Sort results alphabetically

...leaves us with 2 sets of results: Agency+program, category

Revision history for this message
Dan MacNeil (omacneil) wrote :

From this query, it looks like truncating and appending '...' looks fine.

select substring(agency_name,0,43), agency_name from agency where length(agency_name) > 43 ;

Greater Lowell Elder Mental Health Collabo...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.