Skip to content

Commit

Permalink
Merge pull request #18 from philterd/17-remove-lucene
Browse files Browse the repository at this point in the history
Removing Lucene for changes in philterd/phileas#176.
  • Loading branch information
jzonthemtn authored Dec 26, 2024
2 parents d274b12 + 2e86865 commit 82aaecc
Show file tree
Hide file tree
Showing 46 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Dockerfile.philter
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ ARG PHILTER_VERSION
RUN apt-get update && apt-get -y install openjdk-17-jre

RUN mkdir -p /opt/philter/ssl \
&& mkdir -p /opt/philter/indexes \
&& mkdir -p /opt/philter/policies

COPY ./README.md /opt/philter/
COPY ./LICENSE.txt /opt/philter/
COPY ./distribution/indexes /opt/philter/indexes/
COPY ./distribution/policies /opt/philter/policies/
COPY ./distribution/philter.properties /opt/philter/

Expand Down
Binary file removed distribution/indexes/cities/_0.cfe
Binary file not shown.
Binary file removed distribution/indexes/cities/_0.cfs
Binary file not shown.
Binary file removed distribution/indexes/cities/_0.si
Binary file not shown.
Binary file removed distribution/indexes/cities/segments_2
Binary file not shown.
Empty file.
Binary file removed distribution/indexes/counties/_0.cfe
Binary file not shown.
Binary file removed distribution/indexes/counties/_0.cfs
Binary file not shown.
Binary file removed distribution/indexes/counties/_0.si
Binary file not shown.
Binary file removed distribution/indexes/counties/segments_1
Binary file not shown.
Binary file removed distribution/indexes/counties/segments_2
Binary file not shown.
Empty file.
Binary file removed distribution/indexes/hospital-abbreviations/_0.cfe
Binary file not shown.
Binary file removed distribution/indexes/hospital-abbreviations/_0.cfs
Binary file not shown.
Binary file removed distribution/indexes/hospital-abbreviations/_0.si
Binary file not shown.
Binary file removed distribution/indexes/hospital-abbreviations/segments_1
Binary file not shown.
Binary file removed distribution/indexes/hospital-abbreviations/segments_2
Binary file not shown.
Empty file.
Binary file removed distribution/indexes/hospitals/_0.cfe
Binary file not shown.
Binary file removed distribution/indexes/hospitals/_0.cfs
Binary file not shown.
Binary file removed distribution/indexes/hospitals/_0.si
Binary file not shown.
Binary file removed distribution/indexes/hospitals/segments_2
Binary file not shown.
Empty file.
Binary file removed distribution/indexes/names/_0.cfe
Binary file not shown.
Binary file removed distribution/indexes/names/_0.cfs
Binary file not shown.
Binary file removed distribution/indexes/names/_0.si
Binary file not shown.
Binary file removed distribution/indexes/names/segments_2
Binary file not shown.
Empty file.
Binary file removed distribution/indexes/states/_0.cfe
Binary file not shown.
Binary file removed distribution/indexes/states/_0.cfs
Binary file not shown.
Binary file removed distribution/indexes/states/_0.si
Binary file not shown.
Binary file removed distribution/indexes/states/segments_1
Binary file not shown.
Binary file removed distribution/indexes/states/segments_2
Binary file not shown.
Empty file.
Binary file removed distribution/indexes/surnames/_2.fdt
Binary file not shown.
Binary file removed distribution/indexes/surnames/_2.fdx
Binary file not shown.
Binary file removed distribution/indexes/surnames/_2.fnm
Binary file not shown.
Binary file removed distribution/indexes/surnames/_2.si
Binary file not shown.
Binary file removed distribution/indexes/surnames/_2_Lucene50_0.doc
Binary file not shown.
Binary file removed distribution/indexes/surnames/_2_Lucene50_0.tim
Binary file not shown.
Binary file removed distribution/indexes/surnames/_2_Lucene50_0.tip
Binary file not shown.
Binary file removed distribution/indexes/surnames/segments_2
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ExplainApiController(FilterService filterService, Gson gson) {
final FilterResponse response = filterService.filter(policies, context, documentId, body, MimeType.TEXT_PLAIN);

return ResponseEntity.status(HttpStatus.OK)
.header("x-document-id", response.documentId())
.header("x-document-id", response.getDocumentId())
.contentType(MediaType.APPLICATION_JSON)
.body(gson.toJson(response));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ public FilterApiController(FilterService filterService) {
final FilterResponse response = filterService.filter(policies, context, documentId, body, MimeType.TEXT_PLAIN);

return ResponseEntity.status(HttpStatus.OK)
.header("x-document-id", response.documentId())
.body(response.filteredText());
.header("x-document-id", response.getDocumentId())
.body(response.getFilteredText());

}

Expand Down
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@
<junit.version>4.13.2</junit.version>
<micrometer.version>1.13.3</micrometer.version>
<mockito.version>1.10.19</mockito.version>
<phileas.version>2.9.1</phileas.version>
<phileas.version>2.10.0-SNAPSHOT</phileas.version>
<philter.sdk.version>1.4.0</philter.sdk.version>
<spring.boot.version>3.3.1</spring.boot.version>
<spring.version>6.1.10</spring.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<build>
<pluginManagement>
Expand Down

0 comments on commit 82aaecc

Please sign in to comment.