Spaces:
Paused

caarleexx commited on
Commit
98aa350
·
verified ·
1 Parent(s): 81b0784

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -137
app.py CHANGED
@@ -86,147 +86,11 @@ def search_stf(query: str):
86
  "query_string": {
87
  "query": query,
88
  "default_operator": "AND",
89
- "fields":{
90
- "ementa_texto":{
91
- "fragment_size":24000,
92
- "matched_fields":[
93
- "ementa_texto.standard"
94
- ],
95
- "type":"fvh"
96
- },
97
- "sumula_texto":{
98
- "number_of_fragments":0,
99
- "matched_fields":[
100
- "sumula_texto.standard"
101
- ],
102
- "type":"fvh"
103
- },
104
- "materia_noticia":{
105
- "matched_fields":[
106
- "materia_noticia.standard"
107
- ],
108
- "type":"fvh"
109
- },
110
- "titulo_noticia":{
111
- "matched_fields":[
112
- "titulo_noticia.standard"
113
- ],
114
- "type":"fvh"
115
- },
116
- "resumo_noticia":{
117
- "fragment_size":5000,
118
- "matched_fields":[
119
- "resumo_noticia.standard"
120
- ],
121
- "type":"fvh"
122
- },
123
- "conteudo_noticia":{
124
- "fragment_size":50000,
125
- "matched_fields":[
126
- "conteudo_noticia.standard"
127
- ],
128
- "type":"fvh"
129
- },
130
- "acordao_ata":{
131
- "fragment_size":600,
132
- "matched_fields":[
133
- "acordao_ata.standard"
134
- ],
135
- "type":"fvh"
136
- },
137
- "decisao_texto":{
138
- "fragment_size":1200,
139
- "matched_fields":[
140
- "decisao_texto.standard"
141
- ],
142
- "type":"fvh"
143
- },
144
- "documental_tese_texto":{
145
- "fragment_size":2000,
146
- "matched_fields":[
147
- "documental_tese_texto.standard"
148
- ],
149
- "type":"fvh"
150
- },
151
- "documental_tese_tema_texto":{
152
- "fragment_size":2000,
153
- "matched_fields":[
154
- "documental_tese_tema_texto.standard"
155
- ],
156
- "type":"fvh"
157
- },
158
- "documental_observacao_texto":{
159
- "matched_fields":[
160
- "documental_observacao_texto.standard"
161
- ],
162
- "type":"fvh"
163
- },
164
- "documental_indexacao_texto":{
165
- "matched_fields":[
166
- "documental_indexacao_texto.standard"
167
- ],
168
- "type":"fvh"
169
- },
170
- "documental_legislacao_citada_texto":{
171
- "matched_fields":[
172
- "documental_legislacao_citada_texto.standard"
173
- ],
174
- "type":"fvh"
175
- },
176
- "documental_jurisprudencia_citada_texto":{
177
- "matched_fields":[
178
- "documental_jurisprudencia_citada_texto.standard"
179
- ],
180
- "type":"fvh"
181
- },
182
- "documental_doutrina_texto":{
183
- "matched_fields":[
184
- "documental_doutrina_texto.standard"
185
- ],
186
- "type":"fvh"
187
- },
188
- "partes_lista_texto":{
189
- "matched_fields":[
190
- "partes_lista_texto.standard"
191
- ],
192
- "type":"fvh"
193
- },
194
- "documental_publicacao_lista_texto":{
195
- "matched_fields":[
196
- "documental_publicacao_lista_texto.standard"
197
- ],
198
- "type":"fvh"
199
- },
200
- "documental_acordao_mesmo_sentido_lista_texto":{
201
- "matched_fields":[
202
- "documental_acordao_mesmo_sentido_lista_texto.standard"
203
- ],
204
- "type":"fvh"
205
- },
206
- "documental_decisao_mesmo_sentido_lista_texto":{
207
- "matched_fields":[
208
- "documental_decisao_mesmo_sentido_lista_texto.standard"
209
- ],
210
- "type":"fvh"
211
- },
212
- "processo_precedente_texto":{
213
- "matched_fields":[
214
- "processo_precedente_texto.standard"
215
- ],
216
- "type":"fvh"
217
- },
218
- "procedencia_geografica_completo":{
219
- "matched_fields":[
220
- "procedencia_geografica_completo.standard"
221
- ],
222
- "type":"fvh"
223
- }
224
- },
225
  "fuzziness": "AUTO:4,7"
226
  }
227
  },
228
  "_source": ["id", "titulo", "ementa_texto", "processo_codigo_completo", "relator_processo_nome", "orgao_julgador", "julgamento_data", "inteiro_teor_url"],
229
-
230
  "size": 20,
231
  "track_total_hits": True
232
  }
 
86
  "query_string": {
87
  "query": query,
88
  "default_operator": "AND",
89
+ "fields": ["ementa_texto"],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  "fuzziness": "AUTO:4,7"
91
  }
92
  },
93
  "_source": ["id", "titulo", "ementa_texto", "processo_codigo_completo", "relator_processo_nome", "orgao_julgador", "julgamento_data", "inteiro_teor_url"],
 
94
  "size": 20,
95
  "track_total_hits": True
96
  }