BIDS-collaborative / brainspell

brainspell is a web platform to facilitate the creation of an open, human-curated, classification of the neuroimaging literature
https://gitter.im/BIDS-collaborative/brainspell
2 stars 6 forks source link

Formatting Search Result Data #37

Open Sharabesh opened 7 years ago

Sharabesh commented 7 years ago

For my search by location function (which seems to work on keyword inputs as well), I am not sure how to format the String I get into polished HTML that we see on the page. The code is between lines 1590 and 1610 in Brainspell.php

Right now outputs look something like this: image

I know that Search_lucene uses a similar method to yield outputs given a query, but I am not seeing quite where that happens.

davclark commented 7 years ago

@r03ert0 can you chime in on this? I don't quite have time now, and I don't know this part of the code base off the top of my head. The extra complexity introduced by lucene is another reason I think we should just use Postgres... it allows full text search that's not quite as nice, but almost certainly good enough!

cc @jbpoline