Giter Club home page Giter Club logo

Comments (7)

dimitrov-adrian avatar dimitrov-adrian commented on July 26, 2024

I cannot reproduce with my setup. Could you provide sample dump with those 2 collections.

from directus-extension-searchsync.

jfrancarioInera avatar jfrancarioInera commented on July 26, 2024

dump.zip
is sql format alright?

from directus-extension-searchsync.

dimitrov-adrian avatar dimitrov-adrian commented on July 26, 2024

Should works, thanks

from directus-extension-searchsync.

jfrancarioInera avatar jfrancarioInera commented on July 26, 2024

@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.

dimitrov-adrian avatar dimitrov-adrian commented on July 26, 2024

@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:

  1. To use it as a index and having query like <server>/<collection>/_doc/<id>
  2. 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.

dimitrov-adrian avatar dimitrov-adrian commented on July 26, 2024

Fixed in v1.0.0-rc.88

from directus-extension-searchsync.

keniobats avatar keniobats commented on July 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.