You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by gs...@apache.org on 2008/09/09 22:58:34 UTC
svn commit: r693606 - in /lucene/solr/trunk/src/java/org/apache/solr:
common/luke/ handler/component/ highlight/ request/ schema/
search/function/ spelling/ util/
Author: gsingers
Date: Tue Sep 9 13:58:33 2008
New Revision: 693606
URL: http://svn.apache.org/viewvc?rev=693606&view=rev
Log:
Fix missing headers
Modified:
lucene/solr/trunk/src/java/org/apache/solr/common/luke/FieldFlag.java
lucene/solr/trunk/src/java/org/apache/solr/handler/component/ShardResponse.java
lucene/solr/trunk/src/java/org/apache/solr/highlight/SolrHighlighter.java
lucene/solr/trunk/src/java/org/apache/solr/request/BinaryQueryResponseWriter.java
lucene/solr/trunk/src/java/org/apache/solr/schema/ShortField.java
lucene/solr/trunk/src/java/org/apache/solr/schema/SimilarityFactory.java
lucene/solr/trunk/src/java/org/apache/solr/search/function/ShortFieldSource.java
lucene/solr/trunk/src/java/org/apache/solr/spelling/AbstractLuceneSpellChecker.java
lucene/solr/trunk/src/java/org/apache/solr/spelling/QueryConverter.java
lucene/solr/trunk/src/java/org/apache/solr/spelling/SpellingResult.java
lucene/solr/trunk/src/java/org/apache/solr/util/ArraysUtils.java
Modified: lucene/solr/trunk/src/java/org/apache/solr/common/luke/FieldFlag.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/common/luke/FieldFlag.java?rev=693606&r1=693605&r2=693606&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/common/luke/FieldFlag.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/common/luke/FieldFlag.java Tue Sep 9 13:58:33 2008
@@ -1,4 +1,21 @@
package org.apache.solr.common.luke;
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
+
/**
* @version $Id: AdminHandlers.java 608150 2008-01-02 17:15:30Z ryan $
Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/component/ShardResponse.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/component/ShardResponse.java?rev=693606&r1=693605&r2=693606&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/component/ShardResponse.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/component/ShardResponse.java Tue Sep 9 13:58:33 2008
@@ -1,4 +1,20 @@
package org.apache.solr.handler.component;
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
import org.apache.solr.client.solrj.SolrResponse;
import org.apache.solr.common.SolrException;
Modified: lucene/solr/trunk/src/java/org/apache/solr/highlight/SolrHighlighter.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/highlight/SolrHighlighter.java?rev=693606&r1=693605&r2=693606&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/highlight/SolrHighlighter.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/highlight/SolrHighlighter.java Tue Sep 9 13:58:33 2008
@@ -1,4 +1,20 @@
package org.apache.solr.highlight;
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
import java.io.IOException;
import java.util.Collections;
@@ -7,11 +23,6 @@
import java.util.logging.Logger;
import org.apache.lucene.search.Query;
-import org.apache.lucene.search.highlight.Formatter;
-import org.apache.lucene.search.highlight.Fragmenter;
-import org.apache.lucene.search.highlight.Highlighter;
-import org.apache.lucene.search.highlight.QueryScorer;
-import org.apache.solr.common.SolrException;
import org.apache.solr.common.params.HighlightParams;
import org.apache.solr.common.params.SolrParams;
import org.apache.solr.common.util.NamedList;
@@ -20,16 +31,16 @@
import org.apache.solr.search.DocList;
import org.apache.solr.util.SolrPluginUtils;
-public abstract class SolrHighlighter
+public abstract class SolrHighlighter
{
public static Logger log = Logger.getLogger(SolrHighlighter.class.getName());
// Thread safe registry
- protected final Map<String,SolrFormatter> formatters =
+ protected final Map<String,SolrFormatter> formatters =
Collections.synchronizedMap( new HashMap<String, SolrFormatter>() );
// Thread safe registry
- protected final Map<String,SolrFragmenter> fragmenters =
+ protected final Map<String,SolrFragmenter> fragmenters =
Collections.synchronizedMap( new HashMap<String, SolrFragmenter>() );
public abstract void initalize( final Config config );
@@ -61,7 +72,7 @@
if (emptyArray(defaultFields)) {
String defaultSearchField = request.getSchema().getSolrQueryParser(null).getField();
fields = null == defaultSearchField ? new String[]{} : new String[]{defaultSearchField};
- }
+ }
else {
fields = defaultFields;
}
@@ -87,7 +98,7 @@
* @param req the current request
* @param defaultFields default list of fields to summarize
*
- * @return NamedList containing a NamedList for each document, which in
+ * @return NamedList containing a NamedList for each document, which in
* turns contains sets (field, summary) pairs.
*/
@SuppressWarnings("unchecked")
Modified: lucene/solr/trunk/src/java/org/apache/solr/request/BinaryQueryResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/request/BinaryQueryResponseWriter.java?rev=693606&r1=693605&r2=693606&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/request/BinaryQueryResponseWriter.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/request/BinaryQueryResponseWriter.java Tue Sep 9 13:58:33 2008
@@ -1,4 +1,21 @@
package org.apache.solr.request;
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
+
import java.io.Writer;
import java.io.OutputStream;
Modified: lucene/solr/trunk/src/java/org/apache/solr/schema/ShortField.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/schema/ShortField.java?rev=693606&r1=693605&r2=693606&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/schema/ShortField.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/schema/ShortField.java Tue Sep 9 13:58:33 2008
@@ -1,4 +1,20 @@
package org.apache.solr.schema;
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
import org.apache.lucene.document.Fieldable;
import org.apache.lucene.search.SortField;
Modified: lucene/solr/trunk/src/java/org/apache/solr/schema/SimilarityFactory.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/schema/SimilarityFactory.java?rev=693606&r1=693605&r2=693606&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/schema/SimilarityFactory.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/schema/SimilarityFactory.java Tue Sep 9 13:58:33 2008
@@ -1,4 +1,20 @@
package org.apache.solr.schema;
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
import org.apache.lucene.search.Similarity;
import org.apache.solr.common.params.SolrParams;
Modified: lucene/solr/trunk/src/java/org/apache/solr/search/function/ShortFieldSource.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/function/ShortFieldSource.java?rev=693606&r1=693605&r2=693606&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/function/ShortFieldSource.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/function/ShortFieldSource.java Tue Sep 9 13:58:33 2008
@@ -1,4 +1,20 @@
package org.apache.solr.search.function;
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
import org.apache.lucene.search.FieldCache;
import org.apache.lucene.index.IndexReader;
Modified: lucene/solr/trunk/src/java/org/apache/solr/spelling/AbstractLuceneSpellChecker.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/spelling/AbstractLuceneSpellChecker.java?rev=693606&r1=693605&r2=693606&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/spelling/AbstractLuceneSpellChecker.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/spelling/AbstractLuceneSpellChecker.java Tue Sep 9 13:58:33 2008
@@ -1,5 +1,23 @@
package org.apache.solr.spelling;
+import org.apache.lucene.search.spell.StringDistance;
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
+
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
Modified: lucene/solr/trunk/src/java/org/apache/solr/spelling/QueryConverter.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/spelling/QueryConverter.java?rev=693606&r1=693605&r2=693606&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/spelling/QueryConverter.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/spelling/QueryConverter.java Tue Sep 9 13:58:33 2008
@@ -1,4 +1,20 @@
package org.apache.solr.spelling;
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.Token;
Modified: lucene/solr/trunk/src/java/org/apache/solr/spelling/SpellingResult.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/spelling/SpellingResult.java?rev=693606&r1=693605&r2=693606&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/spelling/SpellingResult.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/spelling/SpellingResult.java Tue Sep 9 13:58:33 2008
@@ -1,4 +1,20 @@
package org.apache.solr.spelling;
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
import org.apache.lucene.analysis.Token;
Modified: lucene/solr/trunk/src/java/org/apache/solr/util/ArraysUtils.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/util/ArraysUtils.java?rev=693606&r1=693605&r2=693606&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/util/ArraysUtils.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/util/ArraysUtils.java Tue Sep 9 13:58:33 2008
@@ -1,4 +1,20 @@
package org.apache.solr.util;
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
/**