Query Suggestion Options
Last word completion
Keyboard Layouts
GitHub

👀 While it's loading, feel free to check out the other repositories:

🔔 To get a notification when it's ready, leave your email here:

By entering your email, you agree to receive notifications and marketing-related emails

Filter by reset

44 results 12 ms in manticoresoftware/manticoresearch-javascript

Not possible to replace/update: "Document ids should be integer"

…Hi, I tried to replace a document with an id that searchApi.search returned - '3316996940775817220' (auto-generated on insert) which is a string, but the client throws this error Document ids should be integer , but I can't convert it to a number, because …

DattayaDattaya · 2024-05-09 · 7 · #17

1👍1

bugest::size_S

Security warning from Depandabot

Nick-S-2018Nick-S-2018 · 2024-11-01 · 1 · #21

There isn't a newer version than 1.0.0 according to https://www.npmjs.com/package/json-bigint?activeTab=versions What was the problem with version 1.0.0?

sanikolaevsanikolaev · 2024-11-01

Security warning from Depandabot

There's a security warning from Depandabot https://github.com/manticoresoftware/openapi/security/dependabot/47 concerning the client. But we cannot apply the suggested change since json-bigint:1.0.0 doesn't work with our client correctly. We need to check …

Nick-S-2018Nick-S-2018 · 2024-11-01 · 1 · #21

Not possible to replace/update: "Document ids should be integer"

DattayaDattaya · 2024-05-09 · 7 · #17

1👍1

bugest::size_S

…Hi id that searchApi.search returned - '3316996940775817220' (auto-generated on insert) Manticore shouldn't auto-generate negative IDs. How can I reproduce this?

sanikolaevsanikolaev · 2023-10-06

Compatibility issue with the other official client libraries

Hello! I've recently moved from PHP to node.js. I have never used manticoresearch on the production however, it'll definitely be my main search database after a long research. My first impression was very promising with the PHP client. But I see the …

mustafa519mustafa519 · 2024-02-08 · 2 · #19

waiting

Not possible to replace/update: "Document ids should be integer"

DattayaDattaya · 2024-05-09 · 7 · #17

1👍1

bugest::size_S

Sorry if I wasn't clear enough, but it's a hyphen, not a negative number.

DattayaDattaya · 2023-10-06

Typings

Hello Can you please add typescript typings for this library? Thank you!

TomMettamTomMettam · 2024-02-08 · 1 · #20

waiting

Not possible to replace/update: "Document ids should be integer"

DattayaDattaya · 2024-05-09 · 7 · #17

1👍1

bugest::size_S

Wrt to implementation, one way to do it would be to return BigInts from queries (they’re safe to use, because 64 bit integers are supported since Node 10.5) instead of strings and then serialize those fields with a custom JSON stringifier like json-bigint …

DattayaDattaya · 2023-10-13

1👍1

SearchResponse and SearchResponseHits do not reflect actual return keys

I'm building a new project using this library (great work Manticore team!). I'm using Typescript, so i made the effort to declare custom types for this library alone. After the initial setup, i've noticed that SearchResponse and SearchResponseHits have …

LamarckeLamarcke · 2023-12-06 · 3 · #18

Not possible to replace/update: "Document ids should be integer"

DattayaDattaya · 2024-05-09 · 7 · #17

1👍1

bugest::size_S

Certain IDs being unusable in the insertion APIs bit me as well recently, since it essentially breaks any kind of search + modify behavior you might want. The workaround I ended up using was to just "serialize" the JSON and call the underlying API myself: …

duk-37duk-37 · 2023-11-30

1👍1

Transaction in SQL over HTTP?

The Manticoresearch documentation says, that HTTP connection supports Keep-Alive header (src). Is it possible to use transactions in SQL over HTTP in this case? If this is possible, then you need to somehow pass the superagent instance to the ApiClient. …

UtfCubeUtfCube · 2022-08-28 · 5 · #14

Not possible to replace/update: "Document ids should be integer"

DattayaDattaya · 2024-05-09 · 7 · #17

1👍1

bugest::size_S

Blocked by https://github.com/manticoresoftware/manticoresearch/issues/2107

Nick-S-2018Nick-S-2018 · 2024-04-29

Preventing SQL injection - How to securely pass in user input for the match query using the utilsApi?

The documentation provides this example: const Manticoresearch = require('manticoresearch'); const client = new Manticoresearch.ApiClient(); client.basePath="http://127.0.0.1:9308"; const searchApi = new Manticoresearch.UtilsApi(client); async function() …

mitchdowneymitchdowney · 2022-03-31 · 2 · #12

Not possible to replace/update: "Document ids should be integer"

DattayaDattaya · 2024-05-09 · 7 · #17

1👍1

bugest::size_S

Once this issue is done, let's do this as well https://github.com/manticoresoftware/manticoresearch-typescript/issues/9

sanikolaevsanikolaev · 2024-04-30

Always getting total = 0 when making a UtilsApi query

I'm using v2.0.3. I have a query like this: const result = await utilsApi.sql(` SELECT * FROM idx_media_ref WHERE match('*${searchTitle}*') ORDER BY weight() DESC, ${orderByColumnName} ${orderByDirection} LIMIT ${skip},${take} OPTION ranker=expr('sum(lcs* …

mitchdowneymitchdowney · 2022-03-25 · 1 · #11

Not possible to replace/update: "Document ids should be integer"

DattayaDattaya · 2024-05-09 · 7 · #17

1👍1

bugest::size_S

Done in https://github.com/manticoresoftware/manticoresearch-javascript/commit/974d1ddd4ca0f35ab053b5bece9951e35d261f83

Nick-S-2018Nick-S-2018 · 2024-05-09

1🎉1

How to set the manticoresearch server?

How do you define the baseUrl for the SearchApi?

DreamystifyDreamystify · 2021-04-26 · 5 · #9

How to use it in React?

nw-engineernw-engineer · 2023-07-12 · 1 · #16

Hello, Unfortunately, you cannot use this client with React, as it is. You would need to generate a separate ts client with the OpenAPI generator. Here is its Github repo We welcome cooperation, so if you're interested in the subject, you can generate and …

Nick-S-2018Nick-S-2018 · 2023-07-12

How to use it in React?

Hello. I would like to use this wonderful tool in React. How can I make it available in React?

nw-engineernw-engineer · 2023-07-12 · 1 · #16

Always getting total = 0 when making a UtilsApi query

mitchdowneymitchdowney · 2022-03-25 · 1 · #11

➤ Nick Sergeev commented: No, the query is ok. This problem did exist in Manticore 4.2.0, irrespective of client. It's fixed now in 4.2.1 (dev version) so you can use it to avoid the issue.

githubmanticoregithubmanticore · 2022-03-25

1👍1

The module does not work with Node.js

Node.js v18.9.1 OS: Win 11 Code: const Manticoresearch = require('manticoresearch'); const client = Manticoresearch.ApiClient(); client.basePath = "http://localhost:9308"; Result: client.basePath = "http://localhost:9308"; ^ TypeError: Cannot set …

DaerenDaeren · 2022-10-13 · 1 · #15

bug

How to set the manticoresearch server?

DreamystifyDreamystify · 2021-04-26 · 5 · #9

Added in Readme.md at 63444738633e8d73e07cfa5bdeedd8b7c252ec2d

adriannutaadriannuta · 2020-11-24

Incorrent behavior of JSON.parse for id

Execute of select id from table where id=8216118575463666095 returns {id: 8216118575463666000} This problem describes in https://stackoverflow.com/questions/18755125/node-js-is-there-any-proper-way-to-parse-json-with-large-numbers-long-bigin Bellow …

egorkazantsevegorkazantsev · 2022-05-10 · 2 · #13

Transaction in SQL over HTTP?

UtfCubeUtfCube · 2022-08-28 · 5 · #14

➤ Nick Sergeev commented: We've added the requestAgent option information to the client's README

githubmanticoregithubmanticore · 2022-08-28

Example updated

Updated and slightly supplemented the use cases

dimuska139dimuska139 · 2021-04-28 · 0 · #10

Preventing SQL injection - How to securely pass in user input for the match query using the utilsApi?

mitchdowneymitchdowney · 2022-03-31 · 2 · #12

➤ Nick Sergeev commented: As of now, Manticore doesn't support parametrized queries, so, to ensure safe user input, you've got to use query escaping in your JS app before calling SearchApi.sql method.

githubmanticoregithubmanticore · 2022-03-31

Preventing SQL injection - How to securely pass in user input for the match query using the utilsApi?

mitchdowneymitchdowney · 2022-03-31 · 2 · #12

@githubmanticore ok thank you. I ended up using https://www.npmjs.com/package/sqlstring with our SearchApi.sql queries.

mitchdowneymitchdowney · 2022-03-31

SearchResponse and SearchResponseHits do not reflect actual return keys

LamarckeLamarcke · 2023-12-06 · 3 · #18

Thanks for noticing this. We'll need to review the code style. BTW have you considered using the typescript client we added recently?

sanikolaevsanikolaev · 2023-10-16

SearchResponse and SearchResponseHits do not reflect actual return keys

LamarckeLamarcke · 2023-12-06 · 3 · #18

Thanks for noticing this. We'll need to review the code style. BTW have you considered using the typescript client we added recently? Wow, i honestly didn't know about that! Great work! It's not listed in the main Manticore page, so i didn't know about it …

LamarckeLamarcke · 2023-10-16

Incorrent behavior of JSON.parse for id

egorkazantsevegorkazantsev · 2022-05-10 · 2 · #13

BTW it also fails in JQ version 1.6 (latest at the moment): ➜ ~ echo '{"id": 8216118575463666095}'|jq . { "id": 8216118575463666000 }…

sanikolaevsanikolaev · 2022-04-25

Incorrent behavior of JSON.parse for id

egorkazantsevegorkazantsev · 2022-05-10 · 2 · #13

➤ Nick Sergeev commented: As this issue relates to the basic constraint of Javascript's number type ( Number.MAX_SAFE_INTEGER = 9007199254740991 ), we now handle it by converting such data to string when parsing JSON response.

githubmanticoregithubmanticore · 2022-05-04

How to set the manticoresearch server?

DreamystifyDreamystify · 2021-04-26 · 5 · #9

@tomatolog https://github.com/manticoresoftware/manticoresearch-javascript/pull/10

dimuska139dimuska139 · 2021-04-26

How to set the manticoresearch server?

DreamystifyDreamystify · 2021-04-26 · 5 · #9

@adriannuta code example of current README version ("A simple search case") is incorrect because of client variable is undefined.

dimuska139dimuska139 · 2021-04-24