Clicking on Subjects in record retrieves keywords, not LCSH

Project:RUcore/NJDH/Partner Portal Search
Component:API - Search API
Category:bug report

I clicked on a subject link in a record and it looks like it did a keyword search, not a subject search (LCSH).

Did a subject search on civil war (4 records retrieved) (2 just have "civil" in subject)

Clicked on United States--History--Civil War, 1861-1865 in first record and got 4 records, but only 1 has "United States--History--Civil War, 1861-1865" in the Subject line.



Assigned to:chadmills» carlazim
Status:active» test

I converted the Subject hyperlinks into phrase searches so the results are exact. Please test.


Project:RUcore/NJDH/Partner Portal Search» RUcore dlr/EDIT
Version:6.1» 6.1
Component:Searching - Service Agent» Code
Priority:normal» critical
Assigned to:carlazim» triggs
Status:test» active

So I performed a 'civil war' Subject search on the RUcore development site and it returned 10 results. Of those 10, 3 did not have the term 'war' in any mods:topics values. Further searching discovered 'war' also does not appear in the MODS. I looked the the XML-1/OCR/full text layer and the term 'war' can be found.

These are the three record ID's:


I went in and purged the XML-1 datastream of the rutgers-lib:4216 and ran another search. The record doesn't appear in the result list anymore.

What I learned from this is that while 'civil' is present as a mods:topic term, 'war' was in the OCR and Solr found it anyway.

I performed the same search using the dlr/EDIT Solr search with the same results.

I have since added the XML-1 datastream back in to rutgers-lib:4216.

I am moving this to dlr/EDIT as I think it is an indexing/configuration issue.


This has to be searched as "topic:civil topic:war" rather than "topic:civil war", which is in effect "topic:civil text:war". It seems to work this way already when the two fields of the advanced search form are used, but not when the terms are combined in one field.


Project:RUcore dlr/EDIT» RUcore/NJDH/Partner Portal Search
Version:6.1» 6.1
Component:Code» API - Search API
Assigned to:triggs» carlazim
Status:active» test

I don't really agree that is a good syntax to use because of all the mangling that needs to happen to the submitted query. I have changed the public search to pass the following:

topic:(civil war)

instead of

(topic:civil war)

This appears to have created the desired effect. I am going to issue this as a separate ticket for the dlr/EDIT Solr search.


That syntax should work too.


Status:test» fixed

Tested non-phrased "land use" in Subject search for NBetds and got 3 hits -- all 3 have the words "land" and "use" next to each other in the subject field. Same words phrased retrieved same results. (Naturally (?), phrased "land use" got same results.)

Tested in Subject (entire Scholarly Collection) non-phrased "women history" and retrieved 7 records (the words "women" and "history" were found amongst the Subjects). Phrased "women history" retrieved one of these (Subject is Women--History--Renaissance, 1450-1600).

So it looks like it is now working properly.


Status:fixed» closed

See Carla's comment.

Back to top