Comments (5)
A bit of investigation has narrowed my focus to concat(x,y)'s handling when x
or y has canEmpty=true and a prefix/suffix list rather than a list of exact
matches. The hunt continues...
Original comment by dgryski
on 5 Mar 2012 at 6:29
- Added labels: ****
- Removed labels: ****
from codesearch.
I'm stumped. I think this bug is beyond my current familiarity with the
codebase. I'm certain the issue is with concat(), but after many hours of
staring at this I really have no idea what the fix should look like.
Original comment by dgryski
on 6 Mar 2012 at 8:40
- Added labels: ****
- Removed labels: ****
from codesearch.
So, it looks like this particular issue is actually in alternate(). The code
assumes that either x and y are both exact or both have prefix/suffix lists.
This obviously isn't the case.
The above bug is caused by the fact that emptyString() has an exact match but
no prefix/suffix lists, so when being combined we were unioning with a nil
list. This didn't crash, it just didn't have the expected behaviour.
This also fixes the case where, when searching for '(123|4567)q' , we would get
"67q" as the only required trigram, instead of the correct ("23q"|"67q").
Original comment by dgryski
on 7 Mar 2012 at 9:37
- Added labels: ****
- Removed labels: ****
Attachments:
from codesearch.
After writing that last sentence, I realized that my "corrected" trigrams were
still missing some. My implementation of alternate ignored the exact matches.
We now call addExact() before combining the matches. This allows the (this
time for sure ;) correct trigram set:
("123")|("456" "567") ("23q"|"67q")
to be generated.
Original comment by dgryski
on 7 Mar 2012 at 11:07
- Added labels: ****
- Removed labels: ****
Attachments:
from codesearch.
This issue was closed by revision 56b76ffbf8bb.
Original comment by dgryski
on 2 May 2012 at 8:26
- Changed state: Fixed
- Added labels: ****
- Removed labels: ****
from codesearch.
Related Issues (20)
- Exclude subdirectories
- How to install HOT 1
- Support text files compressed with gzip, bzip2 and xz HOT 2
- Couldn't install HOT 1
- Possible to scan git?
- How to use cgrep? HOT 1
- Some files are not indexed HOT 11
- [Maintainance status] Does anyone own this? HOT 3
- index can't be larger than 4GB
- Color matched patterns in csearch output
- Enable multiline searches
- What will be returned by getSmallest(…) method when you run this program?
- What will be returned by getSmallest(…) method when you run this program?
- cindex is silently ignoring some text files and there's no way to tell why HOT 3
- Fix temporary file deletion not working on Windows
- Esew codes
- index/read line 200 is a bug
- Coding
- facebook account recovery
- Filter for filetype and exact words
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codesearch.