Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Indexing - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
joey1980
#1 Posted : Tuesday, November 3, 2015 4:13:19 PM
Rank: Advanced Member

Groups: Registered

Joined: 9/13/2009
Posts: 34
Hi ,

The application is working fine, but now is presenting a problem, when I try to re-indexing the directory, the search console is indexing the files, and in the same console I try to search and it is working fine, but in the search results is not working.

I have in the IndexDirectory folder, one more folder called General, and inside this two more called spare and tooling, and something extrange passed, the index files are in General folder and the other folders do not have the index files, here is the code, this one goes for one web page and in another web page goes the second code:


Code:
<SearchEngine:SearchResult ID="SearchResult1" runat="server" LicenseKey="" style="text-align:left" IndexDirectory="~/IndexDirectory/general/tooling/" ResultPreviewerEnabled="True" NumberOfResultsPerPage="5" EnableTheming="True" EnableViewState="True" Enabled="True" BackColor="#FFFFFF" HighlightQueryWordsInSummaryHTML='<STRONG class="resultHighlight">{0}</STRONG>' NextPageLinkText="Siguiente" PreviousPageLinkText="Anterior" ResultPreviewerHighlightHTML="<span style='background-color: #880088; font-weight:bold; color: #FFFFFF; text-decoration: overline'>{0}</span>" Width="200px">




Code:
<SearchEngine:SearchResult ID="SearchResult1" runat="server" LicenseKey="" style="text-align:left" IndexDirectory="~/IndexDirectory/general/spare/" ResultPreviewerEnabled="True" NumberOfResultsPerPage="5" EnableTheming="True" EnableViewState="True" Enabled="True" BackColor="#FFFFFF" HighlightQueryWordsInSummaryHTML='<STRONG class="resultHighlight">{0}</STRONG>' NextPageLinkText="Siguiente" PreviousPageLinkText="Anterior" ResultPreviewerHighlightHTML="<span style='background-color: #880088; font-weight:bold; color: #FFFFFF; text-decoration: overline'>{0}</span>" Width="200px">



If I erase the folders spare and tooling from the line, the app Works fine, but like I posted it, does not. And here is how I am point to the folders:



C:\inetpub\wwwroot\WebApplication1\IndexDirectory\general\spare\
http://localhost/IndexDirectory/general/menudeo/

C:\inetpub\wwwroot\WebApplication1\IndexDirectory\general\tooling\
http://localhost/IndexDirectory/general/mayoreo/

C:\inetpub\wwwroot\WebApplication1\IndexDirectory\general\
http://localhost/IndexDirectory/general/


And one more thing, if I indexing all the files within these three folders, an error occurs that say basically: The index directory found a problem and (x number of files) could not be indexed. But, if I choose that the app only indexed specific files like PDF, doc, xls, etc, the problem does not appears. And the AutoCompleteQueryIndexDirectory does not work too.

Thanks for help.
Greetings!
Jim
#2 Posted : Tuesday, November 3, 2015 7:57:12 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Hi, to begin, let's focus on just one directory

IndexDirectory="~/IndexDirectory/general/tooling/"

You're saying that if you open that index directory (C:\inetpub\wwwroot\WebApplication1\IndexDirectory\general\tooling\) with the Index Management Tool, then it will search OK, but if you try the search through your web application, then it will return no results, correct?

Can you show me a screenshot of the index management tool, open on C:\inetpub\wwwroot\WebApplication1\IndexDirectory\general\tooling\ please?

When you say
Quote:
the index files are in General folder and the other folders do not have the index files


that doesn't make sense with what you said before

Quote:
the search console is indexing the files, and in the same console I try to search and it is working fine


because the Index Management tool would not be able to search the index if there were no files in the index directory. Are you sure it was open on the same directory as ~/IndexDirectory/general/tooling/

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


joey1980
#3 Posted : Wednesday, November 4, 2015 2:51:33 PM
Rank: Advanced Member

Groups: Registered

Joined: 9/13/2009
Posts: 34
Jim,

Thanks for the response, after doing a few testings I found that I need for index the files, I have to do it directly from the Visual Studio solution.

What I was doing, I was using the Index Management Tool (CRL1) or (CRL2), and when I use these applications the index do not run properly. Then I used the Wellcome Application, and the index runs fine.

Is there a difference between these apps?

Greetings!
Jim
#4 Posted : Wednesday, November 4, 2015 5:31:56 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Thanks, but they all use the same underlying code, so I can't see how that could happen. Also no other reports of this issue - so the problem must be elsewhere.

When you do it from Visual Studio it sets the index directory for you, so I think that's probably the reason it worked?

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


joey1980
#5 Posted : Friday, November 13, 2015 8:08:44 PM
Rank: Advanced Member

Groups: Registered

Joined: 9/13/2009
Posts: 34
Hi Jim, well, sorry to leave this thread just like this, after doing a few testings, the things are just like in the beginning.

Answering to your question, I believe that VS is the source of why the index is performed with it. I do not know, is just a crazy theory, but we have installed VS into the server and happens the same, I would not like to uninstall VS from it because of we have to do a few changes. However, the index Works fine whatever is the method.


I have another doubt, someone made changes into the HTML code and now I am facing a little problem. The Search Results control show the results, but use the 100% of the value width. I made everything I could but without success. I mean, the <% Conteiner.Uri%> into the class='SEResultItemLink' do not go into two parts, I mean the control shows the complete title in one line, and not in two, How do I can fix it?

the title of the PDF files are long, we do not know if this is the reason for this, I attach the code below:

Code:

<SearchEngine:SearchResult ID="SearchResult1" runat="server" LicenseKey="" style="text-align:left; margin-left:0px" Width="600px" IndexDirectory="~/IndexDirectory/general/tooling/" ResultPreviewerEnabled="True" NumberOfResultsPerPage="5" EnableTheming="True" EnableViewState="True" Enabled="True" BackColor="#FFFFFF" HighlightQueryWordsInSummaryHTML='<STRONG class="resultHighlight">{0}</STRONG>' NextPageLinkText="Siguiente" PreviousPageLinkText="Anterior" ResultPreviewerHighlightHTML="<span style='background-color: #880088; font-weight:bold; color: #FFFFFF; text-decoration: overline'>{0}</span>">
        <ResultItemTemplate>
            <div class='SEResultItem'>
                <table border="0" cellspacing="5px" cellpadding="0">
                    <tr>
                        <td      style='font-family: Arial; font-weight:bold;
                            font-size: 11pt; padding-left: 0px'>
                            <a href="<%# Container.Uri %>" target="_blank">
                                <%# Container.Title %>
                            </a>
                        </td>
                    </tr>
                    <tr>
                        <td class='SEResultItemSummary' style='font-family:Arial;
                            font-size: 10pt; color: #343434; padding-left: 0px; padding-right: 0px'>
                            <%# Container.Summary%> 
                            </td>
                        </tr><tr>

                        <td>
                            <span class='sew_previewResultWrapper'> <img alt="Clic para vista previa del documento • Click to preview the document text"
                                onclick="sew_toggleResultPreview(this, '<%# Container.UriAsStored %>', 'open.png', 'close.png')"
                                src="open.png" style="azimuth: rightwards; float:right; padding-left: 50px" /> <span class='sew_previewResultContent' style="background-color: #880088; color: #FFFFFF; border: Solid 14px #880088; margin-top: 16px; width:615px">Cargando
                                    Doc</span></span>
                        </td>
                    </tr>
                    <tr>
                        <td class='SEResultItemURL' style='font-family: Arial;
                            font-size: 8pt; color: green; visibility: hidden'>
                            <%# Container.Uri %>
                        </td>
                    </tr>
                    <tr>
                        <td class='SELocation' style='font-family: Arial;
                            font-size: 8pt; color: gray; visibility: hidden '>
                            <%# Container.Location %>
                        </td>
                    </tr>
                    <tr>
                        <td class='SEContent' style='font-family: sans-serif, Verdana, Arial, Helvetica;
                            font-size: 8pt; color: gray; visibility: hidden '>
                            <%# Container.Content %>
                        </td>
                    </tr>
                </table>
            </div>
        </ResultItemTemplate>
       
        <HeaderTemplate>
            <br /><br /><br />
        </HeaderTemplate>
       
        <FooterTemplate>
            <div class='SEFooter' style='font-family: Arial; font-size: 9pt;
                background-color: Transparent; border-bottom: 0px solid #95A9D3;
                border-left: 0px solid  #95A9D3; border-right: 0px solid #95A9D3; padding: 0px;
                text-align: left; padding-left: 23px; padding-bottom:21px; padding-top:14px; color: #525252'>
                <table border="0" cellpadding="0" cellspacing="3">
                    <tr>
                        <td style='font-family: Courier New; font-size: 11pt; color: #4F5680'>
                           
                        </td>
                        <td style='font-family: Arial; font-size: 16pt; font-weight:bolder; color: #525252'>
                           <%# Container.PreviousPageLink %> &nbsp;
                        </td>                       
                        <td style='font-family: Arial; font-size: 16pt; font-weight:bolder; color: #525252'>
                            <%# Container.NextPageLink %> &nbsp;
                        </td>
                    </tr>
                </table>
            </div>       
           
            <div class='SEHeader' style='font-family: Arial;
                font-size: 11pt; background-color: Transparent; border-top: 0px solid #95A9D3; border-left: 0px solid  #95A9D3;
                border-right: 0px solid #95A9D3; padding-left: 18px; color: #434343; font-weight:normal'>
               <b>Página
                 <%# Container.ResultsPage %>
                    •
                    <%# Container.NumberOfResults %>
                Resultados <% %> </b></div>
            <br />                                                     
        </FooterTemplate>

        <ErrorMessageTemplate>
            <div class='SEError' style='font-family: sans-serif, Verdana, Arial, Helvetica; font-size: 9pt;
                padding: 4px; color: #343434'>
                Hubo un error de expresión en la busqueda •<p>
                </p>               
            </div>
        </ErrorMessageTemplate>
       
        <NoQueryTemplate>
            <div class='SENoQuery' style='font-family: sans-serif, Verdana, Arial, Helvetica;
                font-size: 9pt; padding: 0px;'>
                <table border='0'>
                    <tr>
                        <td>
                            <SearchEngine:SearchBox ID='SearchBox_NoQuery' runat='server' Visible="false">
                            </SearchEngine:SearchBox>
                        </td>
                    </tr>
                </table>
            </div>
        </NoQueryTemplate>
       
        <NoResultsTemplate>
            <div class='SENoResults' style='font-family: sans-serif, Verdana, Arial, Helvetica; color: #616171;
                font-size: 10pt; background-color:#FFFFFF; height: 200px'>
                <center>
                <table cellspacing="20px" style="width:80%">
                   <tr>
                      <td>
                      <br /><br />
                        <img src="domokunres2.png" alt="" />                         
                      </td>                     
                     
                   </tr>                               
                </table></center>                                               
                </div>
        </NoResultsTemplate>
    </SearchEngine:SearchResult>

Jim
#6 Posted : Friday, November 13, 2015 8:26:02 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Yes it probably is the long PDF titles, if the CSS is setup to no break the word apart, then it will take the space it needs.

You can try applying "word-break: break-all" rule to the container, eg. this might do it

Code:

<style type='text/css'>
.SEResultItemLink{
word-break: break-all !important;
}

</style>


If it doesn't work, experiment using the F12 tool, to find the correct element to apply that rule to.

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.