[
https://issues.apache.org/jira/browse/LUCENE-4956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13649445#comment-13649445
]
Steve Rowe commented on LUCENE-4956:
------------------------------------
[~smlee0818], I don't understand the following method in
{{WordSpaceAnalyzer.java}} - what's the point of the method always returning
false? (i.e.: {{if(true) return false;}}):
{code:java}
private boolean isNounPart(String str, int jstart) throws MorphException {
if(true) return false;
for(int i=jstart-1;i>=0;i--) {
if(DictionaryUtil.getWordExceptVerb(str.substring(i,jstart+1))!=null)
return true;
}
return false;
}
{code}
{{isNounPart()}} is only called from one method in the same class:
{{findJosaEnd(snipt,jstart)}}:
{code:java}
if(DictionaryUtil.existJosa(str) && !findNounWithinStr(snipt,i,i+2) &&
!isNounPart(snipt,jstart)) {
{code}
> the korean analyzer that has a korean morphological analyzer and dictionaries
> -----------------------------------------------------------------------------
>
> Key: LUCENE-4956
> URL: https://issues.apache.org/jira/browse/LUCENE-4956
> Project: Lucene - Core
> Issue Type: New Feature
> Components: modules/analysis
> Affects Versions: 4.2
> Reporter: SooMyung Lee
> Assignee: Christian Moen
> Labels: newbie
> Attachments: kr.analyzer.4x.tar
>
>
> Korean language has specific characteristic. When developing search service
> with lucene & solr in korean, there are some problems in searching and
> indexing. The korean analyer solved the problems with a korean morphological
> anlyzer. It consists of a korean morphological analyzer, dictionaries, a
> korean tokenizer and a korean filter. The korean anlyzer is made for lucene
> and solr. If you develop a search service with lucene in korean, It is the
> best idea to choose the korean analyzer.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]