searchcode-server icon indicating copy to clipboard operation
searchcode-server copied to clipboard

Any support for change Lucene Analyzer in properties file?

Open fengzhihao opened this issue 7 years ago • 1 comments

I want search some code like com.oneplus.trade, but it seems that searchcode default using StardardAnalyzer and parse the string to single word, "com", "oneplus" and "trade".

So is there any way to change the default Lucene Analyzer or other solutions to reslove my question?

Thank you!

fengzhihao avatar Jan 23 '18 03:01 fengzhihao

From memory that should match... For that search term can you supply an example of where it is not matching? I can then have a look at whats happening.

The reason the Analyzer is not configurable like you propose is that the repository processor actually puts a lot of logic on top of the analyzer inside CodeAnalyzer and outside of this. This is done to make the search match better.

An example would be a better way of working this one out. If you can provide that I can resolve it so it makes it into the next release in the next few days.

boyter avatar Jan 23 '18 05:01 boyter