flexion / ef-cms

An Electronic Filing / Case Management System.
23 stars 10 forks source link

Member of the Public: Perform Case Search #2839

Closed JessicaMarine closed 4 years ago

JessicaMarine commented 5 years ago

As a member of the public, in order to locate the information I am looking for, I need the ability to search for cases by keyword & docket number.

Pre-requiste:

Acceptance criteria:

Security Considerations

Tasks

Notes:

Definition of Done (Updated 8-28-19)

Product Owner

UX

Engineering

mlissner commented 4 years ago

Hi, I introduced myself and provided a longer comment over on https://github.com/flexion/ef-cms/issues/40, but I wanted to raise the question here as well, as well as share some experience I have with docket search from building CourtListener.com.

First, I just want to ask/highlight/mention that the T.C. Memo numbers should be searchable via this interface. They're important numbers, and the public should be able to look them up. Note that because they are used as references in other opinions, just using full text search for these provides pretty bad results.

As for the technical design of this, I'll just note — and I apologize if you've already worked through this — that it's challenging because you're mixing object types in your search results. People can search for dockets and they can do full text search for documents. Which type of result you return is tricky! For example, do you return a docket when somebody searches for a phrase in a PDF? That might not be very helpful. Do you return documents when somebody searches for a case name? Also not helpful!

We solved this by grouping results using Solr's grouping operators. So we put documents into our search index, and then when those documents are part of a response, we group the documents by docket, and indent the results. Here's an example:

Screenshot from 2019-11-07 13-33-41

So that shows two dockets each of which has numerous responsive documents.

I hope this helps. I think I saw you're using elastic search, but if it's helpful to see how we do this with Solr (it ain't pretty), our code is open source, and I can dig up a link.

Thank you again for your work on this important project!

Mike

klohman commented 4 years ago

Search

image.png

Docket Search

Search by Name

Petitioner name

Matching results

Country

State

Year filed

Search Results

image.png

Search Criteria

Result heading

On click of “Load 25 More”

Table Columns

Sequence number

Petitioner(s)

Docket Number

Date Filed Case Name State

No Matching Results

image.png

If no matching results found, display message

Clear Search

On click of Clear Search

Updates to Authenticated Users

image.png

mlissner commented 4 years ago

Sorry to raise this again, but is there any plan to have the T.C. Memo numbers indexed for search? Doesn't look like it from your prototype?

klohman commented 4 years ago

2839 Test Scenarios

Test Data

1) User searches for docket number with exact match

2) User searches for docket number with no matches

3) User searches for petitioner name with single match

4) User searches for petitioner name with under [5] multiple matches

5) User searches for petitioner name with over [5] multiple matches

6) User searches for petitioner name and state with multiple matches

7) User searches for petitioner name and international with matches

8) User searches for petitioner spouse’s name and state with matches

9) User searches for petitioner name by [executor name] with matches

10a) User searches for petitioner name and year with matches

10b) User searches for petitioner name and year with matches

11a) User clears search results

11b) User clears search results

12) User searches with blank petitioner name field

13) Users sees search results sorted by docket number

14) User can access case from search results

15) User sees results for open and closed cases

klohman commented 4 years ago

Mobile Views

Default View - Search by Name

image.png

Search by Docket

image.png

Search Results

image.png

mlissner commented 4 years ago

This looks great, but I'm still wondering if the citations (T.C. Memo and the like) will be searchable. They're very important pieces of metadata for people that are actually practicing in the court.

I've raised this a few times now...is there any internal deliberation happening around this, perhaps? This ticket is flagged as "Member of the Public" — I think that means me? A response would be really appreciated.

Thank you.

JessicaMarine commented 4 years ago

@mlissner Thank you for your continued interest in our project. This story is intended only to allow a member of the public search for a case by Petitioner name or docket number. This is not intended to allow keyword search across Orders, Opinions, or other documents. We intend to implement that functionality in another story and will take into consideration your suggestion when we reach that point in our work. Thank you.

mlissner commented 4 years ago

Great to hear, @JessicaMarine. Thank you for the update! If there's a way I can be looped into that issue as well, I'd really appreciate that (though I can't think of a good way except for creating the stub for that story now). Thank you again.

waldoj commented 4 years ago

I'll try to remember to tag you in when that story is added to the backlog, @mlissner.