-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add solr field with number of times a field is used in a record #342
Comments
For the name and subject authority PICA/MARC fields there are Solr fields which concatenates all non administrative subfields. They are called Staying with this example, we can create a Solr field that has the name as the name of the PICA/MARC field plus a prefix/suffix (say
Is it OK for you? Would you like to see another prefix/suffix or no suffix? |
I prefer short names such as |
Thanks! I'd add |
It is testable. You should add It uses the field's {
"id": "010531483",
...,
"001__count_i":1,
"001A_count_i":1,
"001B_count_i":1,
"001U_count_i":1,
"002__count_i":1,
"002C_count_i":1,
"002D_count_i":1,
"002E_count_i":1,
"003__count_i":1,
"003O_count_i":1,
"003S_count_i":1,
"003T_count_i":1,
"004A_count_i":1,
"006G_count_i":1,
"006U_count_i":1,
"007G_count_i":1,
"009__count_i":1,
"010__count_i":1,
"011__count_i":1,
"017G_count_i":1,
"017L_count_i":11,
"019__count_i":1,
"021A_count_i":1,
"028A_count_i":1,
"032__count_i":1,
"033A_count_i":1,
"034D_count_i":1,
"034M_count_i":1,
"044K_00_09_count_i":2,
"045E_count_i":1,
"045R_count_i":1,
"046K_count_i":1,
"046X_count_i":1,
"047A_count_i":1,
...
} |
In the last commits I improved it a bit and added subfield counts. However since there might be repeatable fields and them might have non repeatable subfields, to sum them up would give false result from validation perspective the index stores the subfield count as a list:
New indexing related parameters:
Notes:
|
There seems to be no way to query Solr index for fields alone (except for fields that don't have subfields). To query:
This should be doable with an additional index field holding the number of times, a record field is used in the record.
The text was updated successfully, but these errors were encountered: