I am a newbie of umbraco. After I deploy this CMS on server, I tried many of the features in setting, it works well. Today I installed XSLTsearch package, the only changes are in XSLTsearch template:
change ContentPlaceHolderId's value from "Runway..." to "ContentPlaceHolderDefault";
surround the macro using <form runat="server">...</form>
Then, I create a page using this template, whatever I input in the textbox, it always show message like "Searched 1 pages in 0.003 seconds".
I have used Luke to check the index files, there are about 15 documents, why it only search one page? What config item should I modify?
And in the template I change source's value from "-1" to "1065", it could find the page of id 1065, but it still just searches 1 page, so confusing. In the xslt file, there is a node: <xsl:param name="currentPage"/>, is this the reason?
at the beginning, i think XSLT search uses lucene index:), now i see it just uses XSLT to search properties in pages, right?
i just made a "big" progress, when i set the source value to "1092"(a folder's id), it can find the pages out! But when i set its value to "-1", it just search 1 page and find nothing, why?
So far you are getting only the results of a particular node right?
What you can do is set your Macro source="-1" then under Developer Section Open your XSLTsearch and Look for :
<xsl:whentest="number($source)= -1 or number($source)= 0"> <!-- using ALL nodes --> <xsl:call-templatename="search"> <!-- searches absolutely all pages (useful if you want to search multiple sites at once, or if you do not have all your content pages below a common homepage node in the content tree) --> UnComment this part <xsl:with-paramname="items"select="umbraco.library:GetXmlAll()/*"/> Comment this part <!-- searches all pages within a specific site (useful if you have multiple sites in one umbraco installation) <xsl:with-param name="items" select="$currentPage/ancestor-or-self::* [@level = '1']"/>--> </xsl:call-template> </xsl:when>
I cannot get correct search results by XSLTsearch
I am a newbie of umbraco. After I deploy this CMS on server, I tried many of the features in setting, it works well. Today I installed XSLTsearch package, the only changes are in XSLTsearch template:
Then, I create a page using this template, whatever I input in the textbox, it always show message like "Searched 1 pages in 0.003 seconds".
I have used Luke to check the index files, there are about 15 documents, why it only search one page? What config item should I modify?
And in the template I change source's value from "-1" to "1065", it could find the page of id 1065, but it still just searches 1 page, so confusing. In the xslt file, there is a node: <xsl:param name="currentPage"/>, is this the reason?
Please help me...
Hey andersc,
Are you usind XSLT Search or Index Search??
//fuji
hi fuji,
I am using XSLT Search, thanks for your reply.
Hey andersc,
Try to change <form runat="server">...</form> to <form method="get" action="search.aspx?"> </form> in your XSLT Search template.
What version of umbraco are you using btw?
//fuji
hi fuji,
my version is 4.7.
at the beginning, i think XSLT search uses lucene index:), now i see it just uses XSLT to search properties in pages, right?
i just made a "big" progress, when i set the source value to "1092"(a folder's id), it can find the pages out! But when i set its value to "-1", it just search 1 page and find nothing, why?
Hi Andersc,
So far you are getting only the results of a particular node right?
What you can do is set your Macro source="-1" then under Developer Section Open your XSLTsearch and Look for :
//fuji
Hi Fuji,
Really tons of thanks for your help!
Finally I can search the pages, in this process I found I need to learn more about XSLT, it seems like the heart of Umbraco's macro.
Hey Andersc
Good to hear your search is finally working....
//fuji
Very useful, I had the same problems. Many thanks.
I had same problem...and thank you very much for solving this :)
is working on a reply...