Comments (7)
I cannot reproduce with my setup. Could you provide sample dump with those 2 collections.
from directus-extension-searchsync.
dump.zip
is sql format alright?
from directus-extension-searchsync.
Should works, thanks
from directus-extension-searchsync.
@dimitrov-adrian After some research I may have found the problem. Since elasticsearch 6.0 you can't have more than one _type for index, that's why I couldn't index more than one collection.
I changed the updateItem function of the elasticsearch indexer so it would create one index per collection, using one type "item" for index.
async function updateItem(collection, id, data) {
return await axios.post(
`${config.host}-${collection}/item/${id}`,
data,
axiosConfig
);
}
};
let me know if it checks out
from directus-extension-searchsync.
@jfrancarioInera yes, you are right, from 7.0 types are removed. It seems that this will happen also for 6.8. So I think will be good to move the current behaviour in elasticsearch_legacy
as a type and use typeless in elasticsearch
type
What I am thinking is how to persist the type actually. It seems there is a couple of options like:
- To use it as a index and having query like
<server>/<collection>/_doc/<id>
- Use in doc id like
<server>/<index_from_config>/_doc/<collection>-<id>
and add as a custom property in the document
from directus-extension-searchsync.
Fixed in v1.0.0-rc.88
from directus-extension-searchsync.
@dimitrov-adrian I'm having this issue with your plugin v1.0.3. My setup is Directus 9.23.1 and ELK 8.4.2.
Is there a way of solving this? Thanks!
from directus-extension-searchsync.
Related Issues (20)
- Couldn't register hook "directus-extension-searchsync" HOT 1
- Cannot read property 'EXTENSION_SEARCHSYNC_CONFIG_PATH' of undefined HOT 9
- Algolia index objectID is undefined HOT 6
- Indexing multiple collections to same Algolia Index HOT 2
- Directus relationships don't seem to be working HOT 8
- Can't find binary in git HOT 2
- Config transform async
- How to configure meilisearch index settings HOT 6
- Support `deep` parameter on directus queries
- How to automatically synchronize meilisearch when updating collection data? HOT 1
- Updating related field does not trigger update. HOT 3
- Cannot find a way to start it HOT 5
- Please consider adding support for OpenSearch HOT 1
- TimeStamp / Date HOT 1
- docker installation HOT 4
- Is it possible to sync one collection to multiple meilisearch index
- Can't index image dimensions / properties HOT 1
- Fails to index fields that Directus returns as an array. HOT 1
- Meilisearch deleteItems deletes the entire index
- Reindexing collection is limited to 100 items HOT 2
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 directus-extension-searchsync.