Solrmarc importing

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Solrmarc importing

Fr.HarryL
Hello list,

I am probably missing something here,
in my solr I have a multi-valued field
FField
and wish to pull  all values from some fields  say 992a:993a:994a

so

in my marc.properties file i state

ffield = 992a:993a:994a, FField.properties , all

however
if 992a and and 993a have the same value the "qwe"
992 $a qwe
993 $a qwe
994 $a sdf
the import procedure will import data into Solr but only values that are not identical thus
in SOLR backend I only see

  "ffield":["qwe",
           "sdf"],

that is I am missing a single "qwe" extra.
What is wrong with my marc.properties field definition ???
Thanks for your answers!

Harry


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Solrmarc importing

Demian Katz
Which version of VuFind / SolrMarc are you working with?

By default, SolrMarc deduplicates values in multi-valued fields. However, there is a "notunique" modifier you can add in the place where you have "all" in your example below that should address the problem you describe. This modifier is only available in fairly recent versions of SolrMarc, though, so if you're on an older version, it might be necessary to build a custom method to address the need.

I'm copying the solrmarc-tech list in case anyone there can offer additional assistance. Please let us know if you're still having trouble!

- Demian

-----Original Message-----
From: HL [mailto:[hidden email]]
Sent: Monday, June 12, 2017 2:19 PM
To: [hidden email]
Subject: [VuFind-General] Solrmarc importing

Hello list,

I am probably missing something here,
in my solr I have a multi-valued field
FField
and wish to pull  all values from some fields  say 992a:993a:994a

so

in my marc.properties file i state

ffield = 992a:993a:994a, FField.properties , all

however
if 992a and and 993a have the same value the "qwe"
992 $a qwe
993 $a qwe
994 $a sdf
the import procedure will import data into Solr but only values that are not identical thus in SOLR backend I only see

  "ffield":["qwe",
           "sdf"],

that is I am missing a single "qwe" extra.
What is wrong with my marc.properties field definition ???
Thanks for your answers!

Harry


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.link%2Fslashdot&data=02%7C01%7Cdemian.katz%40villanova.edu%7Cf590527260634efb2af708d4b1bfac88%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636328884171630775&sdata=tL2dODgJHR%2B8DEIigPcfP67XOGR7xAYnMDnV4bIK4nY%3D&reserved=0
_______________________________________________
VuFind-General mailing list
[hidden email]
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fvufind-general&data=02%7C01%7Cdemian.katz%40villanova.edu%7Cf590527260634efb2af708d4b1bfac88%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636328884171630775&sdata=HOXOApVyTP1zX1cGCoVb%2BQGIw6%2BtWr%2FQ%2FhYaViRK%2FK4%3D&reserved=0

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Solrmarc importing

Fr.HarryL
Thanks Demian ... at last it worked !!!

I am running the latest from git/master

I never noticed that the page  goes further down
https://github.com/solrmarc/solrmarc/wiki/Specification-Modifiers !!

Regards!


On 12/06/2017 09:32 μμ, Demian Katz wrote:

> Which version of VuFind / SolrMarc are you working with?
>
> By default, SolrMarc deduplicates values in multi-valued fields. However, there is a "notunique" modifier you can add in the place where you have "all" in your example below that should address the problem you describe. This modifier is only available in fairly recent versions of SolrMarc, though, so if you're on an older version, it might be necessary to build a custom method to address the need.
>
> I'm copying the solrmarc-tech list in case anyone there can offer additional assistance. Please let us know if you're still having trouble!
>
> - Demian
>
> -----Original Message-----
> From: HL [mailto:[hidden email]]
> Sent: Monday, June 12, 2017 2:19 PM
> To: [hidden email]
> Subject: [VuFind-General] Solrmarc importing
>
> Hello list,
>
> I am probably missing something here,
> in my solr I have a multi-valued field
> FField
> and wish to pull  all values from some fields  say 992a:993a:994a
>
> so
>
> in my marc.properties file i state
>
> ffield = 992a:993a:994a, FField.properties , all
>
> however
> if 992a and and 993a have the same value the "qwe"
> 992 $a qwe
> 993 $a qwe
> 994 $a sdf
> the import procedure will import data into Solr but only values that are not identical thus in SOLR backend I only see
>
>    "ffield":["qwe",
>             "sdf"],
>
> that is I am missing a single "qwe" extra.
> What is wrong with my marc.properties field definition ???
> Thanks for your answers!
>
> Harry
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.link%2Fslashdot&data=02%7C01%7Cdemian.katz%40villanova.edu%7Cf590527260634efb2af708d4b1bfac88%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636328884171630775&sdata=tL2dODgJHR%2B8DEIigPcfP67XOGR7xAYnMDnV4bIK4nY%3D&reserved=0
> _______________________________________________
> VuFind-General mailing list
> [hidden email]
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fvufind-general&data=02%7C01%7Cdemian.katz%40villanova.edu%7Cf590527260634efb2af708d4b1bfac88%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636328884171630775&sdata=HOXOApVyTP1zX1cGCoVb%2BQGIw6%2BtWr%2FQ%2FhYaViRK%2FK4%3D&reserved=0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general
Loading...