Bug #3274
Cooccurrences, concordance link, query syntax broken for some CQL characters
| Statut: | New | Début: | 01/09/2022 | |
|---|---|---|---|---|
| Priorité: | Normal | Echéance: | ||
| Assigné à: | - | % réalisé: | 0% |
|
| Catégorie: | Commands | Temps passé: | - | |
| Version cible: | TXM 0.8.4 |
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)
Historique
#1 Mis à jour par Serge Heiden il y a environ 3 ans
- Description mis à jour (diff)
#2 Mis à jour par Matthieu Decorde il y a environ 3 ans
- Description mis à jour (diff)
#3 Mis à jour par Matthieu Decorde il y a environ 3 ans
- Description mis à jour (diff)