From b34a7872da37336135e0a0713774f84542dcc04f Mon Sep 17 00:00:00 2001 From: Tushar Naik Date: Mon, 30 May 2022 00:45:02 +0530 Subject: [PATCH] Fixed the bug in the bundle, using a delegated search engine. Added copyrights in classes where it was missing --- forage-core/pom.xml | 2 +- forage-dropwizard-bundle/pom.xml | 2 +- .../bundle/DelegatedForageSearchEngine.java | 25 +++++++++++++++++++ .../dropwizard/bundle/ForageBundle.java | 13 ++++++---- .../bundle/ForageConfiguration.java | 7 ++++++ .../bundle/ForagePreStartEngine.java | 15 +++++++++++ .../dropwizard/bundle/ForageBundleTest.java | 6 ++--- forage-models/pom.xml | 2 +- .../livetheoogway/forage/models/DataId.java | 14 +++++++++++ .../forage/models/query/ForageQuery.java | 14 +++++++++++ .../forage/models/query/ForageQueryType.java | 14 +++++++++++ .../models/query/ForageQueryVisitor.java | 14 +++++++++++ .../models/query/ForageSearchQuery.java | 14 +++++++++++ .../forage/models/query/PageQuery.java | 14 +++++++++++ .../models/query/search/BooleanQuery.java | 14 +++++++++++ .../models/query/search/ClauseType.java | 14 +++++++++++ .../models/query/search/ClauseVisitor.java | 14 +++++++++++ .../models/query/search/FuzzyMatchQuery.java | 14 +++++++++++ .../models/query/search/MatchQuery.java | 14 +++++++++++ .../models/query/search/ParsableQuery.java | 14 +++++++++++ .../forage/models/query/search/Query.java | 14 +++++++++++ .../forage/models/query/search/QueryType.java | 14 +++++++++++ .../models/query/search/QueryVisitor.java | 14 +++++++++++ .../models/query/search/RangeQuery.java | 14 +++++++++++ .../models/query/search/range/FloatRange.java | 14 +++++++++++ .../models/query/search/range/IntRange.java | 14 +++++++++++ .../models/query/search/range/Range.java | 14 +++++++++++ .../models/query/search/range/RangeType.java | 14 +++++++++++ .../query/search/range/RangeVisitor.java | 14 +++++++++++ .../forage/models/result/DocScore.java | 14 +++++++++++ .../models/result/ForageQueryResult.java | 14 +++++++++++ .../forage/models/result/MatchingResult.java | 14 +++++++++++ .../forage/models/result/Relation.java | 14 +++++++++++ .../forage/models/result/TotalResults.java | 14 +++++++++++ .../forage/models/result/field/Field.java | 15 ++++++++++- .../forage/models/result/field/FieldType.java | 14 +++++++++++ .../models/result/field/FieldTypeVisitor.java | 14 +++++++++++ .../models/result/field/FieldVisitor.java | 14 +++++++++++ .../forage/models/result/field/Fields.java | 14 +++++++++++ .../models/result/field/FloatField.java | 14 +++++++++++ .../forage/models/result/field/IntField.java | 14 +++++++++++ .../models/result/field/StringField.java | 14 +++++++++++ .../forage/models/result/field/TextField.java | 14 +++++++++++ forage-search-engine/pom.xml | 2 +- .../engine/exception/ForageErrorCode.java | 3 ++- pom.xml | 2 +- 46 files changed, 555 insertions(+), 15 deletions(-) create mode 100644 forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/DelegatedForageSearchEngine.java create mode 100644 forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForagePreStartEngine.java diff --git a/forage-core/pom.xml b/forage-core/pom.xml index f69bc9c..bc66671 100644 --- a/forage-core/pom.xml +++ b/forage-core/pom.xml @@ -5,7 +5,7 @@ forage com.livetheoogway.forage - 1.0.1 + 1.0.2 4.0.0 diff --git a/forage-dropwizard-bundle/pom.xml b/forage-dropwizard-bundle/pom.xml index f08da55..2eabd06 100644 --- a/forage-dropwizard-bundle/pom.xml +++ b/forage-dropwizard-bundle/pom.xml @@ -5,7 +5,7 @@ forage com.livetheoogway.forage - 1.0.1 + 1.0.2 4.0.0 diff --git a/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/DelegatedForageSearchEngine.java b/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/DelegatedForageSearchEngine.java new file mode 100644 index 0000000..e48a43e --- /dev/null +++ b/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/DelegatedForageSearchEngine.java @@ -0,0 +1,25 @@ +package com.livetheoogway.forage.dropwizard.bundle; + +import com.livetheoogway.forage.models.query.ForageQuery; +import com.livetheoogway.forage.models.result.ForageQueryResult; +import com.livetheoogway.forage.search.engine.ForageSearchEngine; +import com.livetheoogway.forage.search.engine.exception.ForageSearchError; + +import java.util.concurrent.atomic.AtomicReference; + +public class DelegatedForageSearchEngine implements ForageSearchEngine { + private final AtomicReference> reference; + + public DelegatedForageSearchEngine(ForageSearchEngine preStart) { + this.reference = new AtomicReference<>(preStart); + } + + public void onStart(ForageSearchEngine engine) { + reference.set(engine); + } + + @Override + public ForageQueryResult search(final ForageQuery query) throws ForageSearchError { + return reference.get().search(query); + } +} diff --git a/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForageBundle.java b/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForageBundle.java index 100a2d5..63319c8 100644 --- a/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForageBundle.java +++ b/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForageBundle.java @@ -26,16 +26,15 @@ import io.dropwizard.ConfiguredBundle; import io.dropwizard.lifecycle.Managed; import io.dropwizard.setup.Environment; -import lombok.Getter; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicReference; public abstract class ForageBundle implements ConfiguredBundle { - /* the reference to the search engine that you need to use */ - @Getter - private ForageSearchEngine searchEngine; + /* the reference to the search engine that will get swapped with the actual one on start up */ + private final DelegatedForageSearchEngine delegatedForageSearchEngine + = new DelegatedForageSearchEngine<>(new ForagePreStartEngine<>()); /** * @param configuration application configuration @@ -55,6 +54,10 @@ public abstract class ForageBundle implements Config */ public abstract ForageConfiguration forageConfiguration(final T configuration); + public ForageSearchEngine searchEngine() { + return delegatedForageSearchEngine; + } + @Override public void run(final T configuration, final Environment environment) { AtomicReference> updateEngineRef = new AtomicReference<>(); @@ -67,7 +70,7 @@ public void start() { final ForageEngineIndexer forageEngineIndexer = new ForageEngineIndexer<>(engineBuilder); - searchEngine = forageEngineIndexer; + delegatedForageSearchEngine.onStart(forageEngineIndexer); final PeriodicUpdateEngine updateEngine = new PeriodicUpdateEngine<>( bootstrap(configuration), diff --git a/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForageConfiguration.java b/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForageConfiguration.java index e03479f..96b0362 100644 --- a/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForageConfiguration.java +++ b/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForageConfiguration.java @@ -14,10 +14,17 @@ package com.livetheoogway.forage.dropwizard.bundle; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Value; @Value public class ForageConfiguration { /* signifies how often the bootstrap is called */ int refreshIntervalInSeconds; + + @JsonCreator + public ForageConfiguration(@JsonProperty("refreshIntervalInSeconds") final int refreshIntervalInSeconds) { + this.refreshIntervalInSeconds = refreshIntervalInSeconds; + } } diff --git a/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForagePreStartEngine.java b/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForagePreStartEngine.java new file mode 100644 index 0000000..3748dfb --- /dev/null +++ b/forage-dropwizard-bundle/src/main/java/com/livetheoogway/forage/dropwizard/bundle/ForagePreStartEngine.java @@ -0,0 +1,15 @@ +package com.livetheoogway.forage.dropwizard.bundle; + +import com.livetheoogway.forage.models.query.ForageQuery; +import com.livetheoogway.forage.models.result.ForageQueryResult; +import com.livetheoogway.forage.search.engine.ForageSearchEngine; +import com.livetheoogway.forage.search.engine.exception.ForageErrorCode; +import com.livetheoogway.forage.search.engine.exception.ForageSearchError; + +public class ForagePreStartEngine implements ForageSearchEngine { + @Override + public ForageQueryResult search(final ForageQuery query) throws ForageSearchError { + throw new ForageSearchError(ForageErrorCode.SEARCH_ENGINE_INITIALIZATION_ERROR, + "Forage bundle is not started yet"); + } +} diff --git a/forage-dropwizard-bundle/src/test/java/com/livetheoogway/forage/dropwizard/bundle/ForageBundleTest.java b/forage-dropwizard-bundle/src/test/java/com/livetheoogway/forage/dropwizard/bundle/ForageBundleTest.java index b443ad7..78ffa81 100644 --- a/forage-dropwizard-bundle/src/test/java/com/livetheoogway/forage/dropwizard/bundle/ForageBundleTest.java +++ b/forage-dropwizard-bundle/src/test/java/com/livetheoogway/forage/dropwizard/bundle/ForageBundleTest.java @@ -96,7 +96,7 @@ public ForageConfiguration forageConfiguration(final SampleConfig configuration) final ForageSearchError error = Assertions.assertThrows( ForageSearchError.class, - () -> bundle.getSearchEngine().search(QueryBuilder.matchQuery("author", "rowling").build())); + () -> bundle.searchEngine().search(QueryBuilder.matchQuery("author", "rowling").build())); Assertions.assertEquals(ForageErrorCode.QUERY_ENGINE_NOT_INITIALIZED_YET, error.getForageErrorCode()); store.put(new Book("id1", "Harry Potter and the Half-Blood Prince", "J.K. Rowling", 4.57f, "eng", 652)); @@ -106,7 +106,7 @@ public ForageConfiguration forageConfiguration(final SampleConfig configuration) .pollInterval(Duration.of(100, ChronoUnit.MILLIS)) .until(() -> { try { - final ForageQueryResult query2 = bundle.getSearchEngine().search( + final ForageQueryResult query2 = bundle.searchEngine().search( QueryBuilder.matchQuery("author", "rowling").build()); return query2.getTotal().getTotal() == 1; } catch (ForageSearchError e) { @@ -116,7 +116,7 @@ public ForageConfiguration forageConfiguration(final SampleConfig configuration) return false; } }); - final ForageQueryResult results = bundle.getSearchEngine().search( + final ForageQueryResult results = bundle.searchEngine().search( QueryBuilder.matchQuery("author", "rowling").build()); Assertions.assertEquals("id1", results.getMatchingResults().get(0).getId()); Assertions.assertEquals("Harry Potter and the Half-Blood Prince", results.getMatchingResults() diff --git a/forage-models/pom.xml b/forage-models/pom.xml index e5cf122..8c0021b 100644 --- a/forage-models/pom.xml +++ b/forage-models/pom.xml @@ -5,7 +5,7 @@ forage com.livetheoogway.forage - 1.0.1 + 1.0.2 4.0.0 diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/DataId.java b/forage-models/src/main/java/com/livetheoogway/forage/models/DataId.java index 132e02f..4a402ac 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/DataId.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/DataId.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models; public interface DataId { diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQuery.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQuery.java index 171f16a..a03c179 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQuery.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQuery.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query; import com.fasterxml.jackson.annotation.JsonSubTypes; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQueryType.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQueryType.java index a299a53..bf38f53 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQueryType.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQueryType.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query; public enum ForageQueryType { diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQueryVisitor.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQueryVisitor.java index cc80ad7..63a5e35 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQueryVisitor.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageQueryVisitor.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query; @SuppressWarnings("java:S112") diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageSearchQuery.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageSearchQuery.java index 9eed38b..864bca1 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageSearchQuery.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/ForageSearchQuery.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query; import com.livetheoogway.forage.models.query.search.Query; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/PageQuery.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/PageQuery.java index b164456..931a3d8 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/PageQuery.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/PageQuery.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query; import lombok.EqualsAndHashCode; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/BooleanQuery.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/BooleanQuery.java index 93a3614..ebd96b1 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/BooleanQuery.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/BooleanQuery.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ClauseType.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ClauseType.java index f491475..b9ed989 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ClauseType.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ClauseType.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search; public enum ClauseType { diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ClauseVisitor.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ClauseVisitor.java index ec76830..2dffb98 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ClauseVisitor.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ClauseVisitor.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search; public interface ClauseVisitor { diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/FuzzyMatchQuery.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/FuzzyMatchQuery.java index db419da..725e1a4 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/FuzzyMatchQuery.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/FuzzyMatchQuery.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/MatchQuery.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/MatchQuery.java index 8ec0c19..bba134c 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/MatchQuery.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/MatchQuery.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ParsableQuery.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ParsableQuery.java index 6679c0e..8f68923 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ParsableQuery.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/ParsableQuery.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/Query.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/Query.java index 30ec7b5..2702a14 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/Query.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/Query.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search; import com.fasterxml.jackson.annotation.JsonSubTypes; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/QueryType.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/QueryType.java index 5b39bac..8e14861 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/QueryType.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/QueryType.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search; public enum QueryType { diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/QueryVisitor.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/QueryVisitor.java index befadb2..f23ae34 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/QueryVisitor.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/QueryVisitor.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search; @SuppressWarnings("java:S112") diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/RangeQuery.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/RangeQuery.java index accbc4f..c886f91 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/RangeQuery.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/RangeQuery.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search; import com.livetheoogway.forage.models.query.search.range.Range; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/FloatRange.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/FloatRange.java index e01a562..a458c37 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/FloatRange.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/FloatRange.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search.range; import lombok.EqualsAndHashCode; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/IntRange.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/IntRange.java index a6185e9..0180ff1 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/IntRange.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/IntRange.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search.range; import lombok.EqualsAndHashCode; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/Range.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/Range.java index 61147af..7d92e96 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/Range.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/Range.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search.range; import com.fasterxml.jackson.annotation.JsonSubTypes; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/RangeType.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/RangeType.java index d8a0342..e01ec32 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/RangeType.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/RangeType.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search.range; public enum RangeType { diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/RangeVisitor.java b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/RangeVisitor.java index 0ad2776..ef131c1 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/RangeVisitor.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/query/search/range/RangeVisitor.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.query.search.range; public interface RangeVisitor { diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/DocScore.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/DocScore.java index ff7d390..cf0882e 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/DocScore.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/DocScore.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/ForageQueryResult.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/ForageQueryResult.java index d8b3918..a7ea916 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/ForageQueryResult.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/ForageQueryResult.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/MatchingResult.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/MatchingResult.java index 2af0644..c04ba3c 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/MatchingResult.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/MatchingResult.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result; import lombok.Value; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/Relation.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/Relation.java index 407f384..6dccd0f 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/Relation.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/Relation.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result; public enum Relation { diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/TotalResults.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/TotalResults.java index 877fa9a..3abbea0 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/TotalResults.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/TotalResults.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result; import lombok.Value; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/Field.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/Field.java index f616ff3..2e5fa17 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/Field.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/Field.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result.field; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -6,7 +20,6 @@ import lombok.AllArgsConstructor; import lombok.Getter; - @AllArgsConstructor(access = AccessLevel.PROTECTED) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "fieldType") @JsonSubTypes({ diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldType.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldType.java index 4effa82..48f48a9 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldType.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldType.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result.field; public enum FieldType { diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldTypeVisitor.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldTypeVisitor.java index 0a20d6e..272c6e4 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldTypeVisitor.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldTypeVisitor.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result.field; public interface FieldTypeVisitor { diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldVisitor.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldVisitor.java index c2f22b9..148acab 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldVisitor.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FieldVisitor.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result.field; public interface FieldVisitor { diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/Fields.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/Fields.java index 3cd94b3..51adec4 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/Fields.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/Fields.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result.field; import lombok.experimental.UtilityClass; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FloatField.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FloatField.java index 0f16a14..0afc039 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FloatField.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/FloatField.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result.field; import lombok.EqualsAndHashCode; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/IntField.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/IntField.java index a875151..ca3d5f3 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/IntField.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/IntField.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result.field; import lombok.EqualsAndHashCode; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/StringField.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/StringField.java index 33cf06c..93c9754 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/StringField.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/StringField.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result.field; import lombok.EqualsAndHashCode; diff --git a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/TextField.java b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/TextField.java index 50cecb7..bd5c8c9 100644 --- a/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/TextField.java +++ b/forage-models/src/main/java/com/livetheoogway/forage/models/result/field/TextField.java @@ -1,3 +1,17 @@ +/* + * Copyright 2022. Live the Oogway, Tushar Naik + * + * 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 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 com.livetheoogway.forage.models.result.field; import lombok.EqualsAndHashCode; diff --git a/forage-search-engine/pom.xml b/forage-search-engine/pom.xml index 9e33629..ab7fd83 100644 --- a/forage-search-engine/pom.xml +++ b/forage-search-engine/pom.xml @@ -5,7 +5,7 @@ forage com.livetheoogway.forage - 1.0.1 + 1.0.2 4.0.0 diff --git a/forage-search-engine/src/main/java/com/livetheoogway/forage/search/engine/exception/ForageErrorCode.java b/forage-search-engine/src/main/java/com/livetheoogway/forage/search/engine/exception/ForageErrorCode.java index 04a48a2..57b4e17 100644 --- a/forage-search-engine/src/main/java/com/livetheoogway/forage/search/engine/exception/ForageErrorCode.java +++ b/forage-search-engine/src/main/java/com/livetheoogway/forage/search/engine/exception/ForageErrorCode.java @@ -26,5 +26,6 @@ public enum ForageErrorCode { SEARCH_ERROR, PAGE_QUERY_PARSE_ERROR, QUERY_ENGINE_NOT_INITIALIZED_YET, - DATASTORE_INVALID + DATASTORE_INVALID, + SEARCH_ENGINE_INITIALIZATION_ERROR } diff --git a/pom.xml b/pom.xml index 493ddef..22c8ae6 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.livetheoogway.forage forage pom - 1.0.1 + 1.0.2 forage