indexphonemica / pshrimp-server

IPHON app backend
0 stars 1 forks source link

Provide list of matching allophonic rules when appropriate #10

Closed defseg closed 4 years ago

defseg commented 4 years ago

When you run a search, Pshrimp will display not only the doculects that match the search query, but also (in cases that aren't purely negative) the segments in those doculects that match the query. Since we have allophone search now, Pshrimp should do the same for allophonic rules.

It'll be much easier to do this by running up to three separate queries to get doculects, segments, and allophones, as opposed to running one query to get everything. So search.js will have an async function that accepts client.query or similar as an argument, awaits the doculect search results, uses those results to query the DB for the matching segments and allophones, and handles the object-relational mapping.

defseg commented 4 years ago

done