Skip to content
This repository has been archived by the owner on Jul 5, 2019. It is now read-only.

Choose to only index a file instead of the whole directory? #6

Open
eklem opened this issue Feb 26, 2015 · 4 comments
Open

Choose to only index a file instead of the whole directory? #6

eklem opened this issue Feb 26, 2015 · 4 comments

Comments

@eklem
Copy link
Collaborator

eklem commented Feb 26, 2015

Today we have -d ./somedirectory/
For the search solution I'm working on, I have several sources, giving me several .json-files, that are updated every now and then. I would like to only index the ones that are updated, and not all, all the time.

Could we have something like-f somefile.json in addition. That would make it much more flexible. Maybe even cater for wildcard matching like -f somefile*.json?

@eklem
Copy link
Collaborator Author

eklem commented Feb 26, 2015

Currently I solve this by having one directory for each source:

./source-01/source-01.json
./source-02/source-02.json

So that means this is a nice to have.

@eklem
Copy link
Collaborator Author

eklem commented Feb 26, 2015

And I guess this ties in with #2
That will also give the user more flexibility to how to use the indexer.

@eklem
Copy link
Collaborator Author

eklem commented Mar 19, 2015

This is easy to do with search-index si.add. You just decide how many, one if wanted, documents you want to add to one batch.

@eklem eklem closed this as completed Mar 19, 2015
@fergiemcdowall
Copy link
Owner

Could be leave this open? It is still true that if you are using norch-indexer that you cant index one individual file into norch. (you can index a file with curl or search-index, but not with norch-indexer)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants