Bug #3274
Mis à jour par Matthieu Decorde il y a environ 3 ans
Searching for the cooccurrent " produces a wrong query:
<pre>
("machin" []* @[word="\""] ) | (@[word="\""] []* "machin") within 10
</pre>
The query should (could) be:
<pre>
("machin" []* @[word='\"'] ) | (@[word='\"'] []* "machin") within 10
</pre>
note:
<pre>
"\"" --> works
"\"" [word=".+"] -> doesn't work works
</pre>
h3. Console log
<pre>
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)
</pre>
<pre>
("machin" []* @[word="\""] ) | (@[word="\""] []* "machin") within 10
</pre>
The query should (could) be:
<pre>
("machin" []* @[word='\"'] ) | (@[word='\"'] []* "machin") within 10
</pre>
note:
<pre>
"\"" --> works
"\"" [word=".+"] -> doesn't work works
</pre>
h3. Console log
<pre>
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)
</pre>