Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having issue indexing entry with symbols/ special characters #441

Open
db101097 opened this issue Jun 10, 2024 · 0 comments
Open

Having issue indexing entry with symbols/ special characters #441

db101097 opened this issue Jun 10, 2024 · 0 comments

Comments

@db101097
Copy link

I have a Document instance set up like this
store = new Document({ worker: false, document: { id: "id", index: [ { field: "abbreviation", tokenize: "strict", optimize: true, }, ], store: true, }, });

I added to that document using the add function, passing in

{ id: 0, abbreviation: '#', expansions: [ { plainText: '£', deltas: undefined, weight: 1, idInSearchableIndex: 0, contentType: 'Plain' } ] }

However the id does not show up in the register nor can I search for it. It does work if I add a letter to abbreviation for example
{ id: 0, abbreviation: 'a#', expansions: [ { plainText: '£', deltas: undefined, weight: 1, idInSearchableIndex: 0, contentType: 'Plain' } ] }
Any idea what's going wrong or what I need to add to the config to get this to work ?

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

No branches or pull requests

1 participant