swissbib / vufind

A library resource discovery portal designed and developed for libraries by libraries
GNU General Public License v2.0
12 stars 7 forks source link

Searches with : don't work as expected #686

Closed liowalter closed 5 years ago

liowalter commented 5 years ago

There are several cases where a searches with ":" in the middle is expected to work. But this is not always the case.

  description simple search simple search with “” advanced search advanced search with “”
Linear : algebra simple search not ok ?
less results than "linear algebra"
MKB PP 305 : 27,2004 call number not ok but this is fine ok ok ok
10.1023/A:1008433817832 doi not ok but this is fine  not ok  not ok  ok  
urn:nbn:ch:bel-bau-diss108444 urn not ok but this is fine not ok   not ok error    ok
RETROSoai:agora.ch:hnu-001:1917:23::141 id not ok but this is fine ok     
author:dicker "expert" search ok ok

Involved in this process are these parts :

liowalter commented 5 years ago

[vufind] Searches with : don't work as exepected

liowalter commented 5 years ago

Astonishingly the parser for the ISSN/ISMN/DOI/URN advanced search was not set to edismax.

On top of that, the doi_isn_mv and urn_isn_mv were not included in the simple search.

Changing these both things yield the following improvements :

description simple search simple search with “” advanced search advanced search with “”
Linear : algebra simple search not ok ? less results than "linear algebra"
Linear:algebra simple search not ok but it works on core ok
MKB PP 305 : 27,2004 call number not ok but this is fine ok ok ok
10.1023/A:1008433817832 doi ok ok OK ok
urn:nbn:ch:bel-bau-diss108444 urn not ok ok not ok no more error ok
RETROSoai:agora.ch:hnu-001:1917:23::141 id not ok but this is fine ok
author:dicker "expert" search ok ok
liowalter commented 5 years ago

Solved via https://github.com/swissbib/searchconf/commit/ac015d40d05adb19da617f015fd388e6a038feee

guenterh commented 5 years ago

@liowalter @witzigs
Hi Lionel, thanks a lot for fixing it. As you already mentioned: It might happen that an Index error caused by wrong spelled field-names leads to a bunch of documents not being indexed which are part of a whole batch request sent to SOLR by the indexer client. But we can test it especially before the next Gesamtexport.

Another idea came to my mind: Now you are using a field type text_untreated valid for indexing and query use cases. What if you would define a new field type which is only valid for for indexing puposes and not for the query execution?

Not sure if this works but a fast test might be helpful

liowalter commented 5 years ago

after release the status should be :

description simple search simple search with “” advanced search advanced search with “”
Linear : algebra simple search ok ? less results than "linear algebra"
Linear:algebra simple search ok ok
MKB PP 305 : 27,2004 call number ok ok ok ok
10.1023/A:1008433817832 doi ok ok ok ok
urn:nbn:ch:bel-bau-diss108444 urn ok ok ok ok
RETROSoai:agora.ch:hnu-001:1917:23::141 id ok ok
author:dicker "expert" search ok ok