Hi,
I’m not able to reproduce it. Could you just try to modify
if (proxStream == NULL) {
to
if (proxStream == NULL && parent->proxStream != NULL) {
?
And we will see if it helps.
From: Roushan <[email protected]>
Sent: Wednesday, June 4, 2025 4:55 AM
To: [email protected]
Subject: [CLucene-dev] Phrase Query not working
Hi All,
I am new to the group and apologies in advance if the issue has been
discussed before. I could not find any relevant thread after searching so
posting this question.
I am trying to use phrase query however I am getting segmentation faults
consistently. Here is the code that is causing it:
void SegmentTermPositions::lazySkip() {
if (proxStream == NULL) {
// clone lazily
proxStream = parent->proxStream->clone(); -----> proxStream is nullptr/
}
..
}
After looking at the code it seems to me that "prx" stream is not written or
not even initialized. Am I missing something? Or is it expected that
phrase-query does not work with clucene?
I am willing to make any code changes that may be needed to make it work. Any
pointer and help would be much appreciated.
Regards,
Roushan
_______________________________________________
CLucene-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clucene-developers