-
I am fresh of Haystack and I'd like to migrate the existing codes of Haystack 1.x to current 2.6.1. Also, the document store use the write_document function in 1.x, is that OK to use it in Haystack 2.x? Or I need to change it with the pipelines? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can find more information in the docs and in the API reference Init parameters
{
"class": "Default",
"invertedIndexConfig": {"indexNullState": True},
"properties": [
{"name": "_original_id", "dataType": ["text"]},
{"name": "content", "dataType": ["text"]},
{"name": "dataframe", "dataType": ["text"]},
{"name": "blob_data", "dataType": ["blob"]},
{"name": "blob_mime_type", "dataType": ["text"]},
{"name": "score", "dataType": ["number"]},
],
} Other 1.x parameters do not seem to have a clear replacement in 2.x. MethodsAll Document Stores respect the same protocol and have (at least) these methods:
See the docs. |
Beta Was this translation helpful? Give feedback.
You can find more information in the docs and in the API reference
Init parameters
host
andport
are replaced byurl
index
andcustom_schema
are somehow replaced bycollection_settings
.If not set,
collection_settings
is as follows