update headers
This commit is contained in:
parent
810ce8c1b0
commit
7545e78ce8
|
@ -1,4 +1,4 @@
|
||||||
Phonetic Analysis for ElasticSearch
|
Phonetic Analysis for Elasticsearch
|
||||||
===================================
|
===================================
|
||||||
|
|
||||||
The Phonetic Analysis plugin integrates phonetic token filter analysis with elasticsearch.
|
The Phonetic Analysis plugin integrates phonetic token filter analysis with elasticsearch.
|
||||||
|
@ -57,7 +57,7 @@ License
|
||||||
|
|
||||||
This software is licensed under the Apache 2 license, quoted below.
|
This software is licensed under the Apache 2 license, quoted below.
|
||||||
|
|
||||||
Copyright 2009-2013 Shay Banon and ElasticSearch <http://www.elasticsearch.org>
|
Copyright 2009-2014 Elasticsearch <http://www.elasticsearch.org>
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
use this file except in compliance with the License. You may obtain a copy of
|
use this file except in compliance with the License. You may obtain a copy of
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
/*
|
/*
|
||||||
* Licensed to Elastic Search and Shay Banon under one
|
* Licensed to Elasticsearch under one or more contributor
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* license agreements. See the NOTICE file distributed with
|
||||||
* distributed with this work for additional information
|
* this work for additional information regarding copyright
|
||||||
* regarding copyright ownership. Elastic Search licenses this
|
* ownership. Elasticsearch licenses this file to you under
|
||||||
* file to you under the Apache License, Version 2.0 (the
|
* the Apache License, Version 2.0 (the "License"); you may
|
||||||
* "License"); you may not use this file except in compliance
|
* not use this file except in compliance with the License.
|
||||||
* with the License. You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing,
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* software distributed under the License is distributed on an
|
* software distributed under the License is distributed on an
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
/*
|
/*
|
||||||
* Licensed to Elastic Search and Shay Banon under one
|
* Licensed to Elasticsearch under one or more contributor
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* license agreements. See the NOTICE file distributed with
|
||||||
* distributed with this work for additional information
|
* this work for additional information regarding copyright
|
||||||
* regarding copyright ownership. Elastic Search licenses this
|
* ownership. Elasticsearch licenses this file to you under
|
||||||
* file to you under the Apache License, Version 2.0 (the
|
* the Apache License, Version 2.0 (the "License"); you may
|
||||||
* "License"); you may not use this file except in compliance
|
* not use this file except in compliance with the License.
|
||||||
* with the License. You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing,
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* software distributed under the License is distributed on an
|
* software distributed under the License is distributed on an
|
||||||
|
@ -16,17 +16,11 @@
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import org.apache.commons.codec.Encoder;
|
import org.apache.commons.codec.Encoder;
|
||||||
import org.apache.commons.codec.language.Caverphone1;
|
import org.apache.commons.codec.language.*;
|
||||||
import org.apache.commons.codec.language.Caverphone2;
|
|
||||||
import org.apache.commons.codec.language.ColognePhonetic;
|
|
||||||
import org.apache.commons.codec.language.Metaphone;
|
|
||||||
import org.apache.commons.codec.language.RefinedSoundex;
|
|
||||||
import org.apache.commons.codec.language.Soundex;
|
|
||||||
import org.apache.commons.codec.language.bm.Languages.LanguageSet;
|
import org.apache.commons.codec.language.bm.Languages.LanguageSet;
|
||||||
import org.apache.commons.codec.language.bm.NameType;
|
import org.apache.commons.codec.language.bm.NameType;
|
||||||
import org.apache.commons.codec.language.bm.PhoneticEngine;
|
import org.apache.commons.codec.language.bm.PhoneticEngine;
|
||||||
|
@ -45,6 +39,9 @@ import org.elasticsearch.index.analysis.phonetic.KoelnerPhonetik;
|
||||||
import org.elasticsearch.index.analysis.phonetic.Nysiis;
|
import org.elasticsearch.index.analysis.phonetic.Nysiis;
|
||||||
import org.elasticsearch.index.settings.IndexSettings;
|
import org.elasticsearch.index.settings.IndexSettings;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashSet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -132,4 +129,4 @@ public class PhoneticTokenFilterFactory extends AbstractTokenFilterFactory {
|
||||||
}
|
}
|
||||||
throw new ElasticSearchIllegalArgumentException("encoder error");
|
throw new ElasticSearchIllegalArgumentException("encoder error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
/*
|
/*
|
||||||
* Licensed to Elastic Search and Shay Banon under one
|
* Licensed to Elasticsearch under one or more contributor
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* license agreements. See the NOTICE file distributed with
|
||||||
* distributed with this work for additional information
|
* this work for additional information regarding copyright
|
||||||
* regarding copyright ownership. Elastic Search licenses this
|
* ownership. Elasticsearch licenses this file to you under
|
||||||
* file to you under the Apache License, Version 2.0 (the
|
* the Apache License, Version 2.0 (the "License"); you may
|
||||||
* "License"); you may not use this file except in compliance
|
* not use this file except in compliance with the License.
|
||||||
* with the License. You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
|
@ -16,6 +16,7 @@
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.elasticsearch.index.analysis.phonetic;
|
package org.elasticsearch.index.analysis.phonetic;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
/*
|
/*
|
||||||
* Licensed to Elastic Search and Shay Banon under one
|
* Licensed to Elasticsearch under one or more contributor
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* license agreements. See the NOTICE file distributed with
|
||||||
* distributed with this work for additional information
|
* this work for additional information regarding copyright
|
||||||
* regarding copyright ownership. Elastic Search licenses this
|
* ownership. Elasticsearch licenses this file to you under
|
||||||
* file to you under the Apache License, Version 2.0 (the
|
* the Apache License, Version 2.0 (the "License"); you may
|
||||||
* "License"); you may not use this file except in compliance
|
* not use this file except in compliance with the License.
|
||||||
* with the License. You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
|
@ -16,19 +16,16 @@
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.elasticsearch.index.analysis.phonetic;
|
package org.elasticsearch.index.analysis.phonetic;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Locale;
|
|
||||||
import java.util.Set;
|
|
||||||
import java.util.regex.Matcher;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
import org.apache.commons.codec.EncoderException;
|
import org.apache.commons.codec.EncoderException;
|
||||||
import org.apache.commons.codec.StringEncoder;
|
import org.apache.commons.codec.StringEncoder;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import java.util.regex.Matcher;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Kölner Phonetik
|
* Kölner Phonetik
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,25 +1,29 @@
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to Elasticsearch under one or more contributor
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* license agreements. See the NOTICE file distributed with
|
||||||
* this work for additional information regarding copyright ownership.
|
* this work for additional information regarding copyright
|
||||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
* ownership. Elasticsearch licenses this file to you under
|
||||||
* (the "License"); you may not use this file except in compliance with
|
* the Apache License, Version 2.0 (the "License"); you may
|
||||||
* the License. You may obtain a copy of the License at
|
* not use this file except in compliance with the License.
|
||||||
*
|
* You may obtain a copy of the License at
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
*
|
||||||
*
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
*
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* software distributed under the License is distributed on an
|
||||||
* See the License for the specific language governing permissions and
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
* limitations under the License.
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.elasticsearch.index.analysis.phonetic;
|
package org.elasticsearch.index.analysis.phonetic;
|
||||||
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
import org.apache.commons.codec.EncoderException;
|
import org.apache.commons.codec.EncoderException;
|
||||||
import org.apache.commons.codec.StringEncoder;
|
import org.apache.commons.codec.StringEncoder;
|
||||||
|
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Taken from commons-codec trunk (unreleased yet)
|
* Taken from commons-codec trunk (unreleased yet)
|
||||||
|
@ -322,4 +326,4 @@ public class Nysiis implements StringEncoder {
|
||||||
}
|
}
|
||||||
return new String(chars, 0, count).toUpperCase(java.util.Locale.ENGLISH);
|
return new String(chars, 0, count).toUpperCase(java.util.Locale.ENGLISH);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
/*
|
/*
|
||||||
* Licensed to ElasticSearch and Shay Banon under one
|
* Licensed to Elasticsearch under one or more contributor
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* license agreements. See the NOTICE file distributed with
|
||||||
* distributed with this work for additional information
|
* this work for additional information regarding copyright
|
||||||
* regarding copyright ownership. ElasticSearch licenses this
|
* ownership. Elasticsearch licenses this file to you under
|
||||||
* file to you under the Apache License, Version 2.0 (the
|
* the Apache License, Version 2.0 (the "License"); you may
|
||||||
* "License"); you may not use this file except in compliance
|
* not use this file except in compliance with the License.
|
||||||
* with the License. You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,22 @@
|
||||||
|
/*
|
||||||
|
* Licensed to Elasticsearch under one or more contributor
|
||||||
|
* license agreements. See the NOTICE file distributed with
|
||||||
|
* this work for additional information regarding copyright
|
||||||
|
* ownership. Elasticsearch licenses this file to you under
|
||||||
|
* the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
* not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing,
|
||||||
|
* software distributed under the License is distributed on an
|
||||||
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.elasticsearch.common.inject.Injector;
|
import org.elasticsearch.common.inject.Injector;
|
||||||
|
|
Loading…
Reference in New Issue