Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Show result by user - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
mercierr
#1 Posted : Wednesday, March 30, 2016 8:57:32 AM
Rank: Newbie

Groups: Registered

Joined: 3/30/2016
Posts: 2
Location: france
Hello, I have a web site .Net MVC who is use by some users and I must use an autocomplete TextBox who show differents results depending on the user. For instance, I have informations about invoice in my BDD and within the result, each user can only see his own invoice not that of the other. How can I do this ?
Jim
#2 Posted : Wednesday, March 30, 2016 5:51:01 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Hi, thanks for the question.

I'm trying identify a way to do this, so let me ask;

Do your users only need to search within their own content (invoices)? Or do they sometimes need to search everything?

If they had one index for their own content (one index per user) and there was one index for all content - would you imagine that working? You can only search one index at a time however....

Please let me know your thoughts
Jim
-your feedback is helpful to other users, thank you!


mercierr
#3 Posted : Thursday, March 31, 2016 8:49:14 AM
Rank: Newbie

Groups: Registered

Joined: 3/30/2016
Posts: 2
Location: france
Thanks for answer me,

In Index Management Tool, I have 2 sources, the first is a web URL and all users can search in all pages of the web site with the autocomplete. And the second source is the BDD, and each user can only see their own content. They don’t need search in everything (for the BDD). But all research are made in only one TextBox
Jim
#4 Posted : Thursday, March 31, 2016 5:14:37 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Yes, so that seems the way to go. Like you say, have one index for the entire website and one index for each user (invoices).

You specify the index to use in Javascript

Code:

        <script type="text/javascript">
            keyotiSearch.indexDirectory = "~/myindexdirectory";
        </script>


So you can switch that to the user's invoice based index, if you want them to search just invoices and get autocomplete just for their invoices. Or you can switch the path to the entire website index for general searching.

As you can see, there is a restriction that only one index can be searched at a time, or used for autocomplete data.

Please let me know if any questions

Jim
-your feedback is helpful to other users, thank you!


Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.