Hi Mladen,

As noted, I've never done this before and don't have a guide for how to get 
this to work.  I *suspect* however that you'd need to modify the Solr 
"schem.xml" file(s) within DSpace to "hook up" the Analyzer into Solr.  
 Those "schema.xml" files are standard Solr Schema files, so you'd want to 
look at Solr guides to figure out how to do that.

My best guess is you may want to update the "query" analyzer configuration 
in the "schema.xml" for the DSpace "search" core.   This "search" core is 
the one used when you perform searching/browsing within DSpace.  The 
"query" analyzer is what should be used whenever you run a query against 
that core.
https://github.com/DSpace/DSpace/blob/dspace-8_x/dspace/solr/search/conf/schema.xml#L86

Hopefully that's helpful.  Essentially, I suspect that you'd need a Solr 
guide here rather than a DSpace guide.  The changes should likely all be at 
the Solr level of things.

Tim

On Tuesday, September 10, 2024 at 5:18:12 AM UTC-5 Mladen wrote:

>
> Hi Tim,
>
> Thanks a lot for the references, after I check and try everything I'll 
> write it down here so we can maybe add/update this info :)
>
> Also one question if we add another analyzer then if would use this that 
> one right? Or can we configure it or is DSpace smart enough to know what 
> analyzer to use (base on the alphabet maybe?) Do you have that info 
> somewhere? After I get all the info I can maybe contribute with that also :)
>
> Kind regards,
> Mladen
> On Monday, September 9, 2024 at 7:15:21 PM UTC+2 DSpace Technical Support 
> wrote:
>
>> Hi Mladen,
>>
>> We do not have a guide for this task, but there are some older mailing 
>> list threads that describe what the process might look like:
>>
>> https://groups.google.com/g/dspace-tech/c/a6nsl0sDglE/m/Coij7IlmDAAJ
>> https://groups.google.com/g/dspace-tech/c/ASAvSlWLJQo/m/U84oIEy9BQAJ
>>
>> In general, DSpace uses Solr for all search/browse.  So you should be 
>> able to follow Apache Solr instructions to add a new analyzer.
>>
>> Tim
>>
>> On Sunday, September 8, 2024 at 6:13:00 PM UTC-5 Mladen wrote:
>>
>>> Hello everyone!
>>>
>>> I didn't want to open a new github issue since it does not resonate that 
>>> it should be a new issue more like general question and maybe some guidance.
>>>
>>> I'm new to the platform and I see that there is much going on with the 
>>> code itself, so what would be the steps to add new analyzer to the project? 
>>> (Eg. Serbian or any other Slavic language that supports two writing 
>>> systems). I've done something similar to demo project while learning 
>>> Elastic Search by using it, but since this is a whole new platform rather 
>>> than just Lucene I'm kinda overwhelmed with. :)
>>>
>>> I got some sense that `schema.xml` will need changes and maybe ` 
>>> solrconfig.xml`? Does anyone can explain a bit how it would work? I don't 
>>> want to break anything, I'm kinda new to this whole field, so I'm currently 
>>> investigating how can I learn stuff by doing it, rather than be in endless 
>>> loop of documentation or tutorials..
>>>
>>> Any help would be much appretiated!
>>>
>>> Cheers!
>>> Mladen
>>
>>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/fb47bf19-6636-44be-9218-f5b74eb9133an%40googlegroups.com.

Reply via email to