How do I search in Rich Text with HyGraph API? - filter

I have FAQ model in my HyGraph and I want to search a text and see if the text contains in the Question and in the Answer. Question is a single line text which has no problem but the Answer is rich text and I am not able to search it using its API.
Any idea?

Related

Extract paragraph or sentence from pdf azure cognitive search

I am having a blob container where I am storing PDF files and I am using Azure cognitive search to search word or content over pdf. When searching a word or sentence which is present in one of the pdf present in the container, Azure cognitive search is returning the entire content present in the pdf.
Is there a way that we can extract only a sentence or paragraph from pdf where the word or sentence is appearing?
Is there a way to highlight the input passed wherever it appears in pdf?
Am I using the correct service for above two points?
Yes, there is a feature exactly for what you are looking for, see highlight
you only need to highlight the Content field
POST /indexes/hotels-sample-index/docs/search?api-version=2020-06-30
{
"search": "sandy beaches",
"highlight": "Content"
}

Highlighting search keyword in Slickgrid

I'm developing logs viewer web program with Vue.js
I receive log data with ajax and display it with Slickgrid.
What i need to do is highlighting keyword after searching.
I found some examples highlighting whole cells or row but couldn't find highlighting specific keyword in cell.
ex)When i search a word 'cat', slickgrid shows cells which include 'cat'.
And i need to highlight the word 'cat' in the cell.
Anyone knows how to do this? or any examples??
Thank you.
You'll need to write a custom formatter. See here for an example page. Make sure you're using the 6pac repo - it's up to date, the MLeibman repo is unmaintained now.
Re highlighting a word, you'll need to return HTML from the formatter, and just have a special span to hilight the word, eg:
we will build a <span class="hilight">wall<span/>
It's a tricky business finding a full word, that is making sure it's not part of another word, if that's what you want eg.
did you buy the <span class="hilight">wall<span/>paper yet?
That's a whole 'nother Google search in itself.

Google apps API, is it possible to search the text of a presentation?

I'd like to produce a list of all of the words that appear in a google docs presentation. I thought that the API would allow this, but it only seems that the spreadsheets API allows searching of the contents of the document?
This is correct, you can't get the content of the presentation with the Documents List API, but you can easily download an exported version of a presentation, for example:
GET https://docs.google.com/feeds/download/presentations/Export
?docID=0AsJD12345&exportFormat=txt
You can use plain text output and just split up the words.

Selected text in ruby Tk Text widget?

I can't seem to find how to get the currently selected text from a Text widget in ruby. In perl there was a ->getSelected function, which does not seem to exist in the ruby implementation. Also, the selected text is supposed to be marked with a tag "sel", but whenever I try to use it with get("sel"), it says invalid text index. There must be a way to get the selected text though...
Also, another question, by default, the text widget in perl has a pop menu with all sorts of functionality like search, copy/paste. Was this just a perl specific add on?
Yes, the popup menu in perl is a perl-specific add-on.
As for getting the selected text, you are correct that the selected text has the "sel" tag, and you use that to get the selected text. To retrieve the selected text you should use the index sel.first and sel.last, for example:
get("sel.first", "sel.last")
A really good resource on Tk that covers usage in Tcl, Python, Ruby and Perl see tkdocs.com. The text widget is documented on that site in the tutorial on text.
Of course I finally figured this out right after posting. The index is "sel.first" and "sel.last". so I used get("sel.first", "sel.last")

Converting a german text to english text in vb6.0

i am a newbie to vb 6.0 ,i want to convert the german text to english text as one of
my requirement can anybody help me with this.
thanks
One way you could achieve this is to create a string resource DLL. Have a look at this article for an example of how to use this. When you have this, you can either make calls to the equivelent of LoadString() in the example for every resource or, alternatively, you could write a control to add to every form that automated this process (i.e. itterate through each control and replace the text based on the locale).

Resources