Custom analyzer for RavenDB

放肆的年华 提交于 2020-01-17 08:28:29

问题


I need some info on developing a custom analyzer for RavenDB. I'm in the stage of setting up the DLL, the custom analyzer will be pretty simple as I need just a small modification of the StandardAnalyzer.

I found this page: http://www.tomdupont.net/2013/05/alphanumeric-lucene-analyzer-for-ravendb.html

Obviously it doesn't work out of the box :-)

1) Where do I have to put the custom analyzer DLL? In my hard disk the path of Raven.Database.dll is "D:\ravendb\Server", so I put the Raven.Extensions.AlphanumericAnalyzer.dll of the example above in the new folder "D:\ravendb\Server\Analyzers".

2) Ho can I check if the DLL is recognized and loaded by RavenDB server (after the service has been reloaded)?

3) How can I reference the new analyzer at the bottom of index page settings of web GUI of RavenDB? I read about fully qualified type name, using IlSpy I found something like "Raven.Extensions.AlphanumericAnalyzer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null".

4) Should the solution be compiled in x85 or AnyCPU? Debug or Release?

5) The link talks about a custom analyzer for RavenDB 2.5, any difference with RavenDB 3.5?

Thanks a lot.


回答1:


1) That seems to be the right path, given the default config.

2) Create an index that uses that analyzer. If it works, it was loaded.

3) The easiest way to get the right value is to call typeof(YourAnalyze).AssemblyQualifiedName

4) AnyCPU, Release

5) Not for your needs, it should be the same.



来源:https://stackoverflow.com/questions/44564094/custom-analyzer-for-ravendb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!