Coder Social home page Coder Social logo

Comments (15)

nticaric avatar nticaric commented on September 15, 2024

Thank you!

I'm not sure I understand the problem you have? So the search returns only 1 result, but it should return multiple?

from tntsearch.

jgb-solutions avatar jgb-solutions commented on September 15, 2024

Yes exactly. I have many posts that have that one letter in their title but
I got one post returned in the result while it should give me a collection.

On Jul 3, 2016 4:14 AM, "Nenad Ticaric" [email protected] wrote:

Thank you!

I'm not sure I understand the problem you have? So the search returns only
1 result, but it should return multiple?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute
the thread
https://github.com/notifications/unsubscribe/AHrcKPpDvDjhyJ-NwgJgKjopvWpcz4U-ks5qR32JgaJpZM4JDx_Q
.

from tntsearch.

nticaric avatar nticaric commented on September 15, 2024

The asYouType functionality will only include words that start with a particular letter, so for example if you type the letter y it will search the index for the most common word which starts with y and return that word. Let's say that the most common word is yes. After that it will return all documents that contain the word yes. So if the result set returns only one result, this means that the word yes was found only in one document

from tntsearch.

jgb-solutions avatar jgb-solutions commented on September 15, 2024

This would make sense only if there was only one document with the proposed
title yes. But I have more than one documents with yes (as proposed) within
their title. Shouldn't the asYouType property return a collection of
documents instead of one?

On Jul 3, 2016 4:18 PM, "Nenad Ticaric" [email protected] wrote:

The asYouType functionality will only include words that start with a
particular letter, so for example if you type the letter y it will search
the index for the most common word which starts with y and return that
word. Let's say that the most common word is yes. After that it will
return all documents that contain the word yes. So if the result set
returns only one result, this means that the word yes was found only in
one document


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHrcKLv_VFElVse0uPxOEFCSQl8ySbWZks5qSCctgaJpZM4JDx_Q
.

from tntsearch.

nticaric avatar nticaric commented on September 15, 2024

Yes, it should return a collection if more than one occurrences are found. Have you made sure that you have the latest version of TNTSearch?

from tntsearch.

jgb-solutions avatar jgb-solutions commented on September 15, 2024

Yes it should but it doesn't. I have the latest version of the package.
0.6. And apart from this issue, as suggested by another user you should
implement fuzzy searching as soon as possible.

On Jul 3, 2016 4:45 PM, "Nenad Ticaric" [email protected] wrote:

Yes, it should return a collection if more than one occurrences are found.
Have you made sure that you have the latest version of TNTSearch?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHrcKDVsuKGsgxLkl8Q6cKHsP-pfoRxKks5qSC2FgaJpZM4JDx_Q
.

from tntsearch.

nticaric avatar nticaric commented on September 15, 2024

Can you write a failing unit test for this so I can try to fix it?

from tntsearch.

jgb-solutions avatar jgb-solutions commented on September 15, 2024

No I can't. Because I don't know how to test my code yet. But I 'll learn
that. And for now what I can do is send you some screenshots or gists of my
code and the results I'm getting. If it's good for you let me know.

On Jul 3, 2016 4:59 PM, "Nenad Ticaric" [email protected] wrote:

Can you write a failing unit test for this so I can try to fix it?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHrcKGFRZMA1Kcyq88VWYuP_7U-Wyvk7ks5qSDC8gaJpZM4JDx_Q
.

from tntsearch.

nticaric avatar nticaric commented on September 15, 2024

Ok, lets try that. Is it possible to send me the document collection also, so I can recreate it. And also which particular letter/word you're trying

from tntsearch.

jgb-solutions avatar jgb-solutions commented on September 15, 2024

Yes I will do my best for that. Thanks!

On Jul 3, 2016 5:06 PM, "Nenad Ticaric" [email protected] wrote:

Ok, lets try that. Is it possible to send me the document collection also,
so I can recreate it. And also which particular letter/word you're trying


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHrcKNKS-yeVCg_VxuyFgqNPSAGkptz0ks5qSDJVgaJpZM4JDx_Q
.

from tntsearch.

jgb-solutions avatar jgb-solutions commented on September 15, 2024

Here are my search controller, 2 models, 2 db files and 1 command to index
them. I'm sorry for any inconvenience those might be. Regards.

On Jul 3, 2016 5:08 PM, "Jean Gérard Bousiquot" [email protected]
wrote:

Yes I will do my best for that. Thanks!

On Jul 3, 2016 5:06 PM, "Nenad Ticaric" [email protected] wrote:

Ok, lets try that. Is it possible to send me the document collection
also, so I can recreate it. And also which particular letter/word you're
trying


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHrcKNKS-yeVCg_VxuyFgqNPSAGkptz0ks5qSDJVgaJpZM4JDx_Q
.

from tntsearch.

nticaric avatar nticaric commented on September 15, 2024

It seems like you forgot to attach the files

from tntsearch.

jgb-solutions avatar jgb-solutions commented on September 15, 2024

I'm sorry. Please see here:
https://drive.google.com/folderview?id=0B4Hp3qR50YdmcFZmblB6U2ZfZDA

On Jul 4, 2016 12:32 AM, "Nenad Ticaric" [email protected] wrote:

It seems like you forgot to attach the files


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHrcKKqRzf7Hikb-sMGhTOV-4p_0RDs7ks5qSJrggaJpZM4JDx_Q
.

from tntsearch.

nticaric avatar nticaric commented on September 15, 2024

Ok, after looking at your index here's the issue for the word yeah. In your mp3 collection you have also a word yes which occurs only once in all of the documents and when you type only y it will match the word yes since the levenshtein distance from y is closer to the word yes than to yeah

from tntsearch.

jgb-solutions avatar jgb-solutions commented on September 15, 2024

Thanks for pointing this out! I will try with other keywords. By the way
I'm having some issues to get the package to work on a pc with Ubuntu on it
now. It returns empty results. I'm not sure if this has to do with folder
permission or something. I was on Mac before that. But I guess I must open
a new issue on Github.

On Jul 6, 2016 1:18 PM, "Nenad Ticaric" [email protected] wrote:

Ok, after looking at your index here's the issue for the word yeah. In
your mp3 collection you have also a word yes which occurs only once in
all of the documents and when you type only y it will match the word yes
since the levenshtein distance for y is closer to the word yes than to
yeah


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHrcKOb6KRR9yHEhX05BfzhHSM0QfKTZks5qS_FdgaJpZM4JDx_Q
.

from tntsearch.

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.