Searching with advanced syntax does not find any records

advancedsyntax

#1

Hello,
I’m using advanced search (between double quotes) but in many cases return empty results when there should be one.
I’m using the default configuration plus {“advancedSyntax”:true}. I also tried setting the language {“queryLanguages”: [“pt”], “advancedSyntax”:true}

Here is an example of several that I have tested:
search: “energização das instalações” with no results, but there is one:

Search:

Record:

I already checked if it could be some problem with double spaces.
Is there something I should configure?
Thank you very much!


#2

Hi @FabioAndrade,

Thanks for contacting Algolia.

This sounds odd from your description so I am wondering if maybe there is another setting that accidentally got set.

Indeed, I created a small test index with just a few records - you can see that my variations were to account for advancedSyntax with your entire expression and normalization by taking out the portuguese characters:

{
  "content": "energização das instalações."
},
{
  "content": "energizacao das instalacoes."
},
{
  "content": "energização"
},
{
  "content": "instalações"
}

Then, to reproduce your process, I added the advanced Query Parameters:

Please see the GIF where I am able to retrieve the results:

I know you mentioned you were already using the default settings. Could you try this again with a fresh index and see if you can retrieve your results?

Thanks and let us know how it goes!


#3

Hi @ajay.david!
Thank you for responding so quickly.

I’ve just created a fresh new index and the problem remains the same.

However, it works correctly if I add a record with just the “energização das instalações.” expression, as you did. The problem occurs with the entire record:

{
  "parecerId": "48516__000757__2016",
  "ano": "2016",
  "assunto": "RECURSO EM FACE DE DECISÃO DA ARCE QUE MANTEVE A AUTUAÇÃO REFERENTE AO AUTO DE INFRAÇÃO AI/CEE/012/2012.",
  "data": "15/03/2016",
  "documento": "48516.000757/2016-00",
  "numero_origem": "129",
  "procedencia_interessado": "PROCURADORIA GERAL - PGE",
  "processo": "48500.004862/2015-91 (VOLUME 1)",
  "processoLink": "?acao=detalhe&cod_protocolo=3079059&id=&email=",
  "protocolo": "3200789",
  "procurador": "MARCELO ESCALANTE GONÇALVES",
  "chunk": 8,
  "content": "13. Importante notar que o disposto no artigo 4 °, inciso IV, da Resolução Normativa n ° 63/2004 se refere a “deixar de atender pedido de serviços nos prazos e condições estabelecidos na legislação e/ou contrato ”, que não se confunde com devolução/restituição de valores recebidos do consumidor para antecipação das obras. Também não há possibilidade de se aplicar o inciso II do referido artigo, já  que os valores recebidos pela concessionária não foram indevidos.\n14. Do mesmo modo, a Procuradoria Federal esclarece que é inaplicável o artigo 7 inciso IV, da Resolução n  “63/2004, que tipifica o fato de  “impor qualquer ônus para o solicitante ou consumidor no atendimento a pedido  de  ligação  ou  aumento  de  carga,  no  âmbito  de  Plano  de  Universalização  de  Energia  Elétrica aprovado pela ANEEL,  conforme  legislação  e regulamentação  específicas;   Isso porque  o pagamento  de aporte pelo  consumidor  com  vistas  a  antecipar  a  obra  não  é  imposição  da  concessionária,  mas  uma faculdade conferida ao solicitante.\n15. Assim, não existindo previsão na Resolução Normativa n  ° 63/2004, a penalidade correspondente à Não- Conformidade N.15 deve ser cancelada, em observância aos princípios da legalidade e tipicidade.\nTem-se, pois,  que  as não  conformidades N.l  e N,2  não  encontram  tipicidade  em  nenhuma  das  infrações administrativas dispostas na Resolução ANEEL n ° 63/2004.\n95. Nesse  sentido, uma vez que a conduta de não restituir corretamente, nos termos da legislação de regência, os aportes feitos  por consumidores  para antecipar atendimentos  não possuía,  à época dos  fatos  fiscalizados,  tipicidade  na Res.  63/04,  opina-se pelo cancelamento da multa aplicada em decorrência da Não Conformidade N.6, no valor de R$ 2.944.989,16.96. Apesar de  concluir pela atipicidade  da conduta na Res.  63/04,  que  estipula as infrações administrativas no âmbito de competência da ANEEL,  o parecer 236/2013 deixou claro que  a atitude  de  não restituir os valores  pagos  a título de  antecipação nos termos da legislação era,  sim,  uma conduta ilícita, por contraria as normas  que  estipulam que esse reembolso ocorra e  de que  forma. Desse modo, a par da atipicidade,  a fiscalização poderia determinar a correção do ressarcimento, ou seja,  a realização do reembolso\n48516.000757/2016-00\n\nna  forma  estipulada  pela  legislação,  por  meio  da  expedição  de  uma  Determinação  concreta  no  bojo  do  processo  de  fiscalização. Caso tal  determinação não  fosse  cumprida,  poderia  a  conduta  ser  enquadrada  na  infração  administrativa  prevista no art.  7 °,  XVI, que prevê multa do grupo IV para o caso de haver descumprimento de determinação da  ANEEL no prazo estipulado.97. No  caso  concreto,  por  conta  das  devoluções irregulares   que  levaram ao  delineamento  das  Não  Conformidade  N.6foram expedidas ainda duas Determinações no Termo de Notificação (Determinação D.6 e Determinação D.7).98. N a  Determinação D.6 foi estipulado que:\nA Concessionária deveria proceder a devida atualização dos valores aportados pelos interessados das ordens de serviço  3300078305,  3300078312,  8530078036,  8530078037,  8530078038,  8530078039,  8530078040, 8530078091,  8530078013,  8520071066,  8530078066,  8530078069 e 3300066615,  na forma que dispõe o parágrafo  2o e  acrescidos  da  multa  e juros previstos  no parágrafo  3° do Art.  11,  da  Resolução  ANEEL 223/2003.\n99. Já  na Determinação D.7 foi estipulado que:\nA  Concessionária  deveria  realizar  um  levantamento  de  todos  os  atendimentos  com  obras,  realizados  no período de maio/2003 a dezembro/2007, no âmbito dos Planos de Universalização (urbano, rural e luz para todos), em que tenha havido antecipação de recursos do interessado, de forma a identificar em quais desses atendimentos não  houve  a  restituição  do  valor aportado pelo  interessado,  ou referida restituição  não foi efetuada  de  conformidade  com  o  que  dispõem  os  artigos  de  n°  11,  das Resoluções ANEEL  223/2003  e 456/2000.\nPara os casos em que não houve restituição,  a Coelce deveria proceder a devida restituição na forma que determina o inciso II, Art. 11, da ResoluçãoANEEL 456/2000,  acrescidos de multa e juros de mora conforme determina o § 3o, Art.  11,  da Resolução ANEEL 223/2003.\nPara  os  casos  em  que  os  valores  restituídos  não foram  corrigidos,  a  Coelce  deveria proceder a  devida atualização de conformidade com que dispõe o § 2o, Art. 11, da Resolução ANEEL 223/2003, acrescidos da multa e juros previstos no § 3o do mesmo dispositivo regulamentar citado.\n100. Ambas  as  determinações  foram expedidas  quando da emissão do TN.   O  prazo para cumprimento  da Determinação D.6 foi fixado em quinze dias e  o prazo para cumprimento da D.7 foi fixado em 60 dias.101. No AI,  a ARCE considerou que  as  Determinações  não haviam sido cumpridas,  refutando  os  argumentos  da  Coelce que  alegou tê-las cumprido.  A tese  da ARCE foi no sentido de  que  a atualização realizada não se deu em total respeito à legislação de regência,  que  impunha o pagamento de correção monetária e juros de mora ao longo de todo o período em atraso.102. Em  relação  à  Determinação  D.6,  a  ARCE  afirmou  que  as  restituições  não  foram  pagas  integralmente  para  12 Consumidores,  pois não foram acrescentados os valores  de multa e juros  de mora,  conforme  parágrafo 3° do artigo  11  da Resolução n° 223/2003.103. Quanto  à  Determinação  D.7,  a  ARCE  afirmou  que  na  documentação  apresentada  pela  Concessionária  não constavam as datas em que as obras foram recebidas pela Distribuidora, o que impossibilitou a análise do procedimento adotado.104. Não obstante,  a ARCE enquadrou tais descumprimentos na infração administrativa prevista no art.  7 °, XVI, da Res. 63/04,  aplicando  duas  multas  uma  no valor  de  R$  139.297,07 pelo  descumprimento  da D.6  e  outra  no valor  de  R$  232.163,12  pelo descumprimento da D.7.105. No recurso dirigido à ANEEL,  a Coelce  alegou serem as  multas  indevidas,  uma vez  que  havia cumprido  o teor das determinações.    Sua  tese  é  de  que,  com  base  na  subcláusula  terceira  da  cláusula  décima  primeira  do  Contrato  de  Concessão  n° 01/98, que as obras  objeto das Determinações foram incorporadas no dia de energização das  instalações.  Ademais, a Concessionária alegou  ter  apresentado,   por  meio  do  Recurso  ao  Auto  de  Infração,   os   comprovantes  das   datas  oficiais   de  transferência (energização/incorporação)  dessas  obras.  Dessa  forma,  a  Distribuidora  afirmou ter  efetuado  os  pagamentos  integralmente  para  as\n48516.000757/2016-00\n\nDeterminações  D.6  e  D.7,  pois  os  valores  de  ressarcimento  foram  calculados  pela  Empresa  utilizando  como  base  a  data  de energização das instalações.  Vê-se, pois, que a mesma tese utilizada para justificar a N.6 foi utilizada para justificar o cumprimento das determinações, uma vez que as determinações em tela decorreram dos próprios problemas relatados na N.6.106. Em sua Nota Técnica,  a  SFE sugeriu que  as  multas  decorrentes  das  Determinações  D.  6 e  D.7 fossem canceladas.Aduziu  que  as  determinações  provinham  do  mérito  da  N.6,  que  ainda  estava  sob  discussão  no  momento  da  expedição  das determinações.   Nesse  sentido,  por  se  tratarem  de  determinações  no  sentido  de  que  valores  discutidos  fossem  pagos,  o  prazo  de cumprimento deveria ser renovado.  Consta da Nota Técnica n ° 29/2016-SFE:\n61.  Para  os argumentos apresentados pela ARCE,  a  Coelce  alegou,  com  base na subcláusula  terceira da cláusula décima primeira do Contrato de Concessão n° 01/98, que as obras objeto das Determinações foram incorporadas no dia de energização das instalações. Ademais, a Concessionária alegou ter apresentado, por meio   do   Recurso   ao  Auto   de   Infração,   os   comprovantes   das   datas   oficiais  de   transferência (energização/incorporação) dessas obras. Dessa forma, a Distribuidora afirmou ter efetuado os pagamentos integralmente para  as Determinações D.6 e D.7, pois os valores de  ressarcimento foram  calculados pela Empresa utilizando como base a data de energização das instalações."} 

No results:

I hope you can reproduce like this, otherwise I can give you access to my index.
Tks again!


#4

Hi @ajay.david,

after several tests I thing I have a good test case to explain this problem.

When I change the position of the expression “energização das instalações” inside the string, I have positive or negative results. If the expression appears after a certain number of words, it looks like is not indexed anymore.

Furthermore, If I try to add exactly the same object but with distinct field order, the result is different, as shown below:

  1. 3 Fields before the content field and the content field with the expression after 975 words: NEGATIVE
{"field1": "field1",
"field2": "field2",
"field3": "field3",
"content": "word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word energização das instalações."}
  1. (same object, switching the order) The content field at first with the expression after 975 words and 3 Fields after the content field: POSITIVE
{
"content": "word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word energização das instalações.",
"field1": "field1",
"field2": "field2",
"field3": "field3"}
  1. (Switching the position of the expression) 3 Fields before the content field and the content field with the expression after 970 words and 5 more words after the expression: POSITIVE
{"field1": "field1",
"field2": "field2",
"field3": "field3",
"content": "word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word energização das instalações word word word word word."}

Thank you again for all the help!


#5

Hi!

one more case:

  1. This problem is not related to the language. The same test in english when searching for “expression test”:
{"field1": "field1",
"field2": "field2",
"field3": "field3",
"content": "word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word expression test."}

tks!


#6

I contacted the Algolia support team by email and the response was:

The behavior you spotted out is actually a known limitation we have in the engine. The advanced syntax search feature is limited to the first 1000 words of each records’ attribute.
The workaround to overcome this limitation is usually to split your big attributes into multiple smaller ones before sending them to Algolia.