Bug #3274

Cooccurrences, concordance link, query syntax broken for some CQL characters

Added by Serge Heiden 3 months ago. Updated 3 months ago.

Status:New Start date:09/01/2022
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Commands Spent time: -
Target version:TXM 0.8.3

Description

Searching for the cooccurrent " produces a wrong query:

("machin" []* @[word="\""] ) | (@[word="\""]  []* "machin") within 10

The query should (could) be:

("machin" []* @[word='\"'] ) | (@[word='\"']  []* "machin") within 10

note:

"\"" --> works
"\""  [word=".+"] -> doesn't work

Console log

Concordance de <("machin" []* @[word="\""] ) | (@[word="\""]  []* "machin") within 10 > dans le corpus NOV13-2022-07-19-V1/cercle1...
org.txm.searchengine.cqp.serverException.CqiClErrorRegex: 
    at org.txm.searchengine.cqp.MemCqiClient.throwExceptionFromCqi(MemCqiClient.java:155)
    at org.txm.searchengine.cqp.MemCqiClient.throwExceptionFromCqi(MemCqiClient.java:66)
    at org.txm.searchengine.cqp.MemCqiClient.cqpQuery(MemCqiClient.java:437)
    at org.txm.searchengine.cqp.corpus.CQPCorpus.query(CQPCorpus.java:1495)
    at org.txm.searchengine.cqp.CQPSearchEngine.query(CQPSearchEngine.java:435)
    at org.txm.concordance.core.functions.Concordance._compute(Concordance.java:338)
    at org.txm.core.results.TXMResult.compute(TXMResult.java:2398)
    at org.txm.rcp.swt.dialog.ComputeProgressMonitorDialog$1.run(ComputeProgressMonitorDialog.java:97)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
** CQP error: CQP Syntax Error: syntax error, unexpected $undefined, expecting IMPLIES or '|' or '&' or ']'⏎    Q323 = ("machin" []* @[word="\""] ) | (@[word="\ <--.
org.txm.searchengine.cqp.clientExceptions.CqiClientException: CQP error: CQP Syntax Error: syntax error, unexpected $undefined, expecting IMPLIES or '|' or '&' or ']'
    Q323 = ("machin" []* @[word="\""] ) | (@[word="\ <--
    at org.txm.searchengine.cqp.corpus.CQPCorpus.query(CQPCorpus.java:1513)
    at org.txm.searchengine.cqp.CQPSearchEngine.query(CQPSearchEngine.java:435)
    at org.txm.concordance.core.functions.Concordance._compute(Concordance.java:338)
    at org.txm.core.results.TXMResult.compute(TXMResult.java:2398)
    at org.txm.rcp.swt.dialog.ComputeProgressMonitorDialog$1.run(ComputeProgressMonitorDialog.java:97)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

History

#1 Updated by Serge Heiden 3 months ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde 3 months ago

  • Description updated (diff)

#3 Updated by Matthieu Decorde 3 months ago

  • Description updated (diff)

Also available in: Atom PDF