rufuspollock-okfn / bibserver

BibServer is open-source software what makes it easy to publish, manage and find bibliographies. BibServer is RESTful and web-friendly.
MIT License
126 stars 34 forks source link

Search capability over url field in links #127

Closed pitman closed 13 years ago

pitman commented 13 years ago

It is an attractive feature to be able to search over domain names and full urls in the urls field. Present capabilities seem inconsistent, I am not sure what is happening. In the collection http://bibsoup.net/pitman/distributome_references/ I would like all items that have a link to mathwold.wolfram.com.

If I search for "mathworld"

http://bibsoup.net/pitman/distributome_references/?q=mathworld&collection=%5B%22distributome_references%22%5D&showkeys=&search=Search

I get one entry (why? I'm not sure). I expect more entries.

If instead for "mathworld"

http://bibsoup.net/pitman/distributome_references/?q=*mathworld*&collection=%5B%22distributome_references%22%5D&showkeys=&search=Search

is better. Gives 4 which is good.

But if I search for a particular url http://mathworld.wolfram.com/GammaDistribution.html which I know is there (see http://bibsoup.net/pitman/distributome_references/?q=Beta+distribution&collection=%5B%22distributome_references%22%5D&showkeys=&search=Search )

http://bibsoup.net/pitman/distributome_references/?q=http%3A%2F%2Fmathworld.wolfram.com%2FGammaDistribution.html&collection=%5B%22distributome_references%22%5D&showkeys=&search=Search

I get 0 returns. Not good.

markmacgillivray commented 13 years ago

searching for mathworld finds that term. The 1 record it shows is the only record that has mathworld as a stand-alone string (it is in the name of the record). Searching for mathworld* finds the term within other strings, so it finds it in the URLs.

Searching for the full URL example will work if you put quotes around it.

Documentation and options for the search bar are required. I have added a ticket for that, and will close this one.