Comments (6)
right, here's another patch for the is_recursive option:
diff --git a/core/sherlock/indexer.py b/core/sherlock/indexer.py
index 4104234..07889c9 100644
--- a/core/sherlock/indexer.py
+++ b/core/sherlock/indexer.py
@@ -200,6 +200,8 @@ class Indexer(object):
if can_index:
path = os.path.join(dirpath, name)
self.__index_file(path)
+ if dirpath != dpath:
+ self.__index_dir(dirpath)
pass
def __index_file(self, filepath):
regards :D
from text-sherlock.
Thanks! I'll review the changes and get this merged.
from text-sherlock.
great!
i think text-sherlock is really great project. It certainly beats
installing tomcat :D however, i would like to extend this project a bit. is
that ok with you ? should i fork the project or sth?
i would like to add such features:
- when you click on the results, the display page should link to specific
line (right now it jumps to the beggining of file) - indexing directly from scm like git/svn/etc
- indexing more than one branch
- project's browser
also, currently when my query includes a slash (/) i don't find the
results. i don't know whether that is a bug of sherlock or xapian.
best regards,
toudi.
2012/11/14 C. Bess [email protected]
Thanks! I'll review the changes and get this merged.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-10368308.
pozdrawiam serdecznie,
Mateusz Mikołajczyk, a.k.a. toudi
from text-sherlock.
@toudi Thanks, yeh, I got fed up with Tomcat/OpenGrok setup and created text sherlock.
Line numbers was my next planned feature addition, so if you handled it that would be great. I'll make an issue for it.
As long as you make a unit test for the features and the other tests pass, I'll merge it.
I'm not sure about that '/' issue, separate issue?
Thanks for your contributions.
from text-sherlock.
@toudi Made an issue for line number: #13
I'm in the process of updating the db logic to support peewee 2.x. I tagged the current working package info.
from text-sherlock.
Fixed in 424cdd5. I found no recursive indexing issue.
from text-sherlock.
Related Issues (20)
- Add YAML config support HOT 1
- Error while trying to reindex HOT 3
- Add line numbers HOT 3
- New Setting: Skip indexing if directory empty HOT 2
- TypeError: coercing to Unicode: need string or buffer, NoneType found HOT 7
- commit 166 new error :/ HOT 1
- error while updating index HOT 2
- error while trying to run the server
- error while trying to run the server
- error while trying to run the server HOT 6
- "Total documents indexed: 0" issue HOT 3
- "python main.py --test" error if "log_path" configured HOT 1
- Allow for partial text searching HOT 2
- Performance issue HOT 5
- Excluding directories? HOT 3
- DocNotFoundError during index update HOT 1
- Integrate indexing/searching of PDFs and other textual docs HOT 2
- Install instructions unclear HOT 3
- Feature request: Browsing interface HOT 1
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 text-sherlock.