Skip to content

Commit

Permalink
working on #386
Browse files Browse the repository at this point in the history
  • Loading branch information
markkerzner committed Dec 24, 2023
1 parent 8ebc039 commit 7a3527c
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 57 deletions.
24 changes: 12 additions & 12 deletions freeeed-processing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,18 @@
<groupId>org.apache.solr</groupId>
<artifactId>solr-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers-standard-package</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.tika</groupId>-->
<!-- <artifactId>tika-core</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.apache.tika</groupId>-->
<!-- <artifactId>tika-parsers-standard-package</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.apache.tika</groupId>-->
<!-- <artifactId>tika-parsers</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
Expand Down
68 changes: 56 additions & 12 deletions freeeed-processing/src/main/java/org/freeeed/ui/ProjectUI.form
Original file line number Diff line number Diff line change
Expand Up @@ -927,25 +927,28 @@
<EmptySpace min="-2" pref="36" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="askButton" min="-2" max="-2" attributes="0"/>
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
</Group>
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<Group type="102" attributes="0">
<Component id="indexAICheck" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="indexAiButton" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Component id="indexAICheck" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="indexAiButton" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="litigationTypeCombo" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="47" max="-2" attributes="0"/>
<Component id="jLabel7" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="27" max="-2" attributes="0"/>
<Component id="reportTypeCombo" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="askButton" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="1" attributes="0">
<Group type="103" groupAlignment="1" attributes="0">
Expand Down Expand Up @@ -995,6 +998,10 @@
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel4" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="askButton" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="litigationTypeCombo" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel7" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="reportTypeCombo" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane3" min="-2" pref="96" max="-2" attributes="0"/>
Expand Down Expand Up @@ -1145,6 +1152,43 @@
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="indexAiButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JLabel" name="jLabel6">
<Properties>
<Property name="text" type="java.lang.String" value="Litigation type"/>
</Properties>
</Component>
<Component class="javax.swing.JComboBox" name="litigationTypeCombo">
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="4">
<StringItem index="0" value="Generic"/>
<StringItem index="1" value="Civil"/>
<StringItem index="2" value="Criminal"/>
<StringItem index="3" value="Investigation"/>
</StringArray>
</Property>
</Properties>
<AuxValues>
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="&lt;String&gt;"/>
</AuxValues>
</Component>
<Component class="javax.swing.JLabel" name="jLabel7">
<Properties>
<Property name="text" type="java.lang.String" value="Report type"/>
</Properties>
</Component>
<Component class="javax.swing.JComboBox" name="reportTypeCombo">
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="None"/>
</StringArray>
</Property>
</Properties>
<AuxValues>
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="&lt;String&gt;"/>
</AuxValues>
</Component>
</SubComponents>
</Container>
</SubComponents>
Expand Down
45 changes: 35 additions & 10 deletions freeeed-processing/src/main/java/org/freeeed/ui/ProjectUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ private void initComponents() {
answerText = new javax.swing.JTextArea();
jLabel5 = new javax.swing.JLabel();
indexAiButton = new javax.swing.JButton();
jLabel6 = new javax.swing.JLabel();
litigationTypeCombo = new javax.swing.JComboBox<>();
jLabel7 = new javax.swing.JLabel();
reportTypeCombo = new javax.swing.JComboBox<>();
okButton = new javax.swing.JButton();
cancelButton = new javax.swing.JButton();

Expand Down Expand Up @@ -781,6 +785,14 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
}
});

jLabel6.setText("Litigation type");

litigationTypeCombo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Generic", "Civil", "Criminal", "Investigation" }));

jLabel7.setText("Report type");

reportTypeCombo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "None" }));

javax.swing.GroupLayout aiPanelLayout = new javax.swing.GroupLayout(aiPanel);
aiPanel.setLayout(aiPanelLayout);
aiPanelLayout.setHorizontalGroup(
Expand All @@ -805,19 +817,24 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(36, 36, 36))
.addGroup(aiPanelLayout.createSequentialGroup()
.addGroup(aiPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(aiPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(aiPanelLayout.createSequentialGroup()
.addComponent(jLabel4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(askButton))
.addComponent(jLabel6))
.addComponent(jLabel5)
.addGroup(aiPanelLayout.createSequentialGroup()
.addGroup(aiPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel5)
.addGroup(aiPanelLayout.createSequentialGroup()
.addComponent(indexAICheck)
.addGap(18, 18, 18)
.addComponent(indexAiButton)))
.addGap(0, 0, Short.MAX_VALUE)))
.addComponent(indexAICheck)
.addGap(18, 18, 18)
.addComponent(indexAiButton)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(litigationTypeCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47)
.addComponent(jLabel7)
.addGap(27, 27, 27)
.addComponent(reportTypeCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(askButton)
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, aiPanelLayout.createSequentialGroup()
.addGroup(aiPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
Expand Down Expand Up @@ -854,7 +871,11 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addGap(8, 8, 8)
.addGroup(aiPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(askButton))
.addComponent(askButton)
.addComponent(jLabel6)
.addComponent(litigationTypeCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel7)
.addComponent(reportTypeCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
Expand Down Expand Up @@ -1072,6 +1093,8 @@ private void doClose(int retStatus) {
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel5;
Expand All @@ -1081,6 +1104,7 @@ private void doClose(int retStatus) {
private javax.swing.JScrollPane jScrollPane4;
private javax.swing.JTextArea jTextArea1;
private javax.swing.JLabel labelMetadataCollected;
private javax.swing.JComboBox<String> litigationTypeCombo;
private javax.swing.JComboBox<String> loadFormatChoice;
private javax.swing.ButtonGroup metadataButtonGroup;
private javax.swing.JPanel metadataPanel;
Expand All @@ -1104,6 +1128,7 @@ private void doClose(int retStatus) {
private javax.swing.JLabel projectNameLabel;
private javax.swing.JTextArea questionText;
private javax.swing.JButton removeButton;
private javax.swing.JComboBox<String> reportTypeCombo;
private javax.swing.JComboBox<String> resultType;
private javax.swing.ButtonGroup searchButtonGroup;
private javax.swing.JPanel searchPanel;
Expand Down
16 changes: 8 additions & 8 deletions freeeed-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@
<groupId>org.apache.solr</groupId>
<artifactId>solr-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers-standard-package</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.tika</groupId>-->
<!-- <artifactId>tika-core</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.apache.tika</groupId>-->
<!-- <artifactId>tika-parsers-standard-package</artifactId>-->
<!-- </dependency>-->

<dependency>
<groupId>org.apache.httpcomponents</groupId>
Expand Down
30 changes: 15 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,21 @@
<artifactId>solr-core</artifactId>
<version>9.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers-standard-package</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<version>2.9.0</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.tika</groupId>-->
<!-- <artifactId>tika-core</artifactId>-->
<!-- <version>2.9.0</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.apache.tika</groupId>-->
<!-- <artifactId>tika-parsers-standard-package</artifactId>-->
<!-- <version>2.9.0</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.apache.tika</groupId>-->
<!-- <artifactId>tika-parsers</artifactId>-->
<!-- <version>2.9.0</version>-->
<!-- </dependency>-->

<dependency>
<groupId>org.openoffice</groupId>
Expand Down

0 comments on commit 7a3527c

Please sign in to comment.