Skip to content
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

Any support for change Lucene Analyzer in properties file? #170

Open
fengzhihao opened this issue Jan 23, 2018 · 1 comment
Open

Any support for change Lucene Analyzer in properties file? #170

fengzhihao opened this issue Jan 23, 2018 · 1 comment
Assignees

Comments

@fengzhihao
Copy link

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!

@boyter
Copy link
Owner

boyter commented Jan 23, 2018

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 boyter self-assigned this Jan 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants