Aggregate results with different metadata content in one dynamic facet - google-search-appliance

We have a need to combine different content under a single filter.
For example:
There are two pages with content_format meta tag.
One page with video content: <meta name="content_format" content="Video"/>
And other with audio: <meta name="content_format" content="Audio"/>
We should create one facet "Video/Audio" with both pages in this facet.
I found in documentation that it is possible to change "Display Label" for dynamic navigation through Entity Recognition:
The display label for the attribute appears on the search results page. The display label can be different from the name of the entity as configured for entity recognition or the attribute in HTML. For example, for "pub" in the following META tag,
<META NAME="pub" CONTENT="Google">, you might use the display label "Publisher."
https://www.google.com/support/enterprise/static/gsa/docs/admin/72/admin_console_help/serve_dynamic_navigation.html#displaylabel
I think about ability to combine several metadata values through Entity Recognition,but at the same time, the documentation for Entity Recognition says that Entity will not be created for metadata:
The search appliance extracts entities from the content of documents; it does not extract entities from the metadata associated with a document.
https://www.google.com/support/enterprise/static/gsa/docs/admin/72/admin_console_help/crawl_entity_recognition.html
Is it possible to aggregate search results with different metadata content(with equal metadata name) in one dynamic facet?

You won't be able to do this. Also, the display label stuff wouldn't help you here, it just lets you specify the label that would be shown to the user.
To solve this problem, you'll have to find a way to aggregate the metadata prior to indexing. If you're dynamically generating content, simply add a new metadata field if the current metadata field would match audio or video. If you're not dynamically generating content, use a metadata feed or crawl proxy to inject the new metadata field.

Related

Create Index page for ASCII doc

I have a lot of ASCII docs at different locations and I want to create an index page which should render these documents. But the condition here is that I want to list all the document link on the index page and if the user clicks on any link then only the document should be displayed. I don't want to display the documents below the table of content. I just want to display the table of content on the index page.
Is there any way to do this?
If I understand you correctly, you wish to generate a multi-document website, but you want an index page that displays just the TOC, with the other documents served elsewhere. I believe the best way to get this effect would be to generate chunked XHTML output using the DocBook toolchain. I believe this should be possible with Asciidoctor tools, but I have only implemented this particular post-rendering toolchain with the original (Python-based) AsciiDoc rendering tool, as documented here. This setup is configurable to generate a TOC index page that links to chunked output (you can configure the level of chunking).
As you have already figured out, AsciiDoc's automated TOC generation only works on the present document, which requires including the subordinate document to get their headings for the TOC. I can think of ways to sort of game this, such as to include just the heading of the included document (include::path/to/document.adoc[lines=1]) and then hiding even those headings with CSS or something. The problem is, the links in the TOC will be pointing internally, so you'd need to handle that somehow.
Another way is to use any of the static-site generators that support or can be readily extended to support AsciiDoc. What you're talking about is not an out-of-the-box feature that I'm aware of, but they all at least make it possible to generate an organized TOC-type navigation.

Inserting a hyperlink in a TASK in Dynamics CRM 2013. Hyperlink does not render as HTML hyperlink

Using {Record URL(Dynamic)(Entity Name)} I have inserted it as part of system requirments into the "Description" of a TASK Activity.
But the URL does not render as a HTML hyperlink.
I have also tried using the <hyperlink> tag. But this does not work.
(Important Note : I heard notice this is achievable in an Email
Activity with the Record URL(Dynamic)(Entity Name) attribute. But I am
trying to achieve this in a Task Activity.)
Sample example of code in Workflow that creates this task is the Text given below:
..... project record, available here: {Record URL(Dynamic)(Entity Name)}.
We are using CRM 2013 for this cutomization and configuration.
Can you tell me what I am doing wrong and what I need to change to achieve this feature.?
Unlike email, the Description field of Tasks is plain text and doesn't support hyperlinks. Adding a formula to the task description will just display the formula text, not calculate it or generate a hyperlink.
If you need a link from a task to a specific record, add a custom lookup field to that entity. Another option would be to add an HTML Web Resource where you could show rich HTML with hyperlinks, but you'll need to create its content (with the link) on your own, no formula will generate the content for you.

Dynamic navigation based on metadata and URL patterns

Is it possible to create a dynamic navigation filter based on metadata and URL patterns?
One part of the pages on our site has metadata and other part not. We need to build a dynamic navigation filter which will include page with and without metadata.
E.g
Part of pates contains metadata:
<meta name="content_format" content="Video"/>
<meta name="content_format" content="Audio"/>
Other part can be recognized by URL pattern:
http://test.com/.*.pdf - Document
http://test.com/blogs/.* - Blog
The filter should look like this:
Content Format
- Video
- Audio
- Document
- Blog
I reviewed documentation, but didn't find such opportunity.
Perhaps there are some workarounds?
You can create dynamic navigation out of metadata or entity extraction but not both.

Use already uploaded picture in ezpublish Article

In my article datatype, I've an ezimage field which look like that:
http://i.stack.imgur.com/pZGR3.png
I can upload/drag and drop pictures, set a description, it's work fine.
But I can't figured out how to use already uploaded pictures, ma Media Library is full of pictures but I don't know how to use them in my field.. I think and hope there is a way to add this functionality without overriding ezimage datatype.
Do you have any idea ?
If you have Image objects in your Media Library, you should use an Object Relation field in the Content Classes you want to use this object from. You would then be able to browse for images when editing the content.
Multiple images would also work, by using an Object Relation List instead of a single Object Relation.
Which version of eZ are you dealing with here ?

Force a Content to in new page when generating a PDF

Im using play framework and rendering PDF usin rednerPDF() method.
I would like to display some part of content always be in new page.
For Example I have two tables, One table should be in first page and another table should in next page instead of continue from first page. The first table contents are dynamic and we can't sure the height of the table.
Is it possible?
Is it possible?Yes.
You said one table(first one) should be in first page,and again you said its content is dynamic.Now my question is it span over pages and in the next page you want to write second table?This is a generic scenario and what you mentioned is specific one.
You can start trying using two properties of PdfPTable setSplitLate() and setSplitRows()(just google it out for details read Itext In Action).Just keep Two table as two Rows of outer table.set those two property for inner as well as outer in some way as you want(i.e generic case/Specific case).
Another alternative way is use writeSelectedRows() method over PdfContentByte(I don't konw which Object you gonna use for manipulating pdf but you can get it from PdfWriter,*PdfStamper* by using getDirectContent/*UnderContent*/OverContent) after generating table.To use this method you have to set total width of the table so the height can be calculated by method getTotalHeight of PdfPTable.If You use this height properly you absolutely know where your table ends.But all these specific part you have to read & understand first.
With yahp you can use a special html tag to force a page break
<yahp:pb />
we can achieve this by page-break-after:always
Please refer
Alternate to PDF for dynamically generated document with page breaks

Resources