highlighting

Solr highlighting gives field/snippets with ANY term, instead of those that satisfy the query fully

爷,独闯天下 提交于 2019-12-12 02:13:53
问题 I'm using Solr 5.x, standard highlighter, and i'm getting snippets which matches even one of the search terms only, even if i indicate q.op=AND. I need ONLY the fields and snippets that matches ALL the terms (unless i say q.op=OR or just omit it), i.e. the field/snippet must satisfy the query. Solr does return the field/snippet that has all the terms, but also return many others. I'm using hl.fl=*, to get the only fields having the terms, and searching against the default field ('text'

WPF TextBlock highlight certain parts based on search condition

这一生的挚爱 提交于 2019-12-12 01:57:05
问题 I have TextBlock that has Inlines dynamicly added to it (basically bunch of Run objects that are either italic or bold). In my application I have search function. I want to be able to highlight TextBlock's text that is in being searched for. By highlighting I mean changing certain parts of TextBlock text's color (keeping in mind that it may highlight several different Run objects at a time). I have tried this example http://blogs.microsoft.co.il/blogs/tamir/archive/2008/05/12/search-and

Change inactive page 'Title'

ぐ巨炮叔叔 提交于 2019-12-11 17:53:14
问题 I influenced from StackOverflow Chat. Here when the page is inactive then number of the new incoming chat messages are displayed in the Page title. When the page is activated the this number is disappeared. How can I implement this concept in my application? I also want to highlight that window. 回答1: detecting when it goes inactive can be done with 'window.onblur' (the onblur event) detecting when it goes active again can be done with 'window.onfocus' (the onfocus event) 来源: https:/

OS X Get highlighted text

会有一股神秘感。 提交于 2019-12-11 15:57:05
问题 I'm interested in writing a plugin for OS X to support multiple operations on highlighted text in the right click context menu. The operations are simple enough that I could write them by myself. I've looked at automator's "Copy to Clipboard" action, but it requires some text input first. The "Get contents of Clipboard" action will make my operations require the highlighted text to first be copied to the clipboard. So the question is simple: how do I access the system wide highlighted text

fulltext search and highlighting by PHP and MySQL?

有些话、适合烂在心里 提交于 2019-12-11 12:06:14
问题 MySQL can take care of fulltext search quite well, but it doesn't highlight the keywords that are searched, how can I do this most efficiently? 回答1: The solutions posed above require retrieval of the entire document in order to search, replace, and highlight text. If the document is large, and many are, this seems like a really bad idea. Better would be for MySQL FTS to return the text offsets directly like SQLITE does, then use an indexed substring operator - that would be significantly more

Sitecore 7 highlight search results

感情迁移 提交于 2019-12-11 11:54:01
问题 I am working on the upgrade of a project from Sitecore 6.2 to Sitecore 7. I have found out that in Sitecore 6.2, the highlighting of the search results are implemented with the Lucene.Net.Search.Highlight.Highlighter, QueryScorer and Formatter classes in sitecore.client dll. Which classes and/or functions does Sitecore 7 provide to do highlighting in search results? I searched the web but I could not find the required information/examples. 回答1: Highlighting of results is not supported

Removing <span> tag while leaving content intact, with just javascript

浪子不回头ぞ 提交于 2019-12-11 11:22:31
问题 I'm doing some in page highlighting, and found the most popular example when using text selection and adding spans is by switching to designMode and running execCommand How can I highlight the text of the DOM Range object? There's no follow up though on how to remove the span tags once created. I saw some examples using jquery and the replaceWith, but none with straight javascript. 回答1: You should be able to do something like: // Where span is a reference to the span to be replaced var text =

Showing human readable most frequent indexed terms using a stemmed field with Solr faceted search

ε祈祈猫儿з 提交于 2019-12-11 08:52:54
问题 We are planning on using Solr to show the users the "n" most frequent terms from a field and we want to apply stemming so that similar terms get grouped. Now, we need to show the terms to the users but the stemmed terms are not always human readable. Is there any way to get an example of the original terms that got stemmed so that those could be shown to the user? The only solution we can think of is quering two different fields, one with stemming and one without and then do the matching

Marklogic - highlighting cts:element-attribute-range-query output

心已入冬 提交于 2019-12-11 08:42:50
问题 i am doing a cts:element-attribute-range-query and the results from it is working fine. But highlighting is not working for the output result. When i referred the search guide http://developer.marklogic.com/pubs/4.2/books/search-dev-guide.pdf i could see that cts:element-attribute-*-query outputs will not be suitable for cts:highlight function. I am using Marklogic 4.2. My application greatly depends on this highlighted output, Is there any way i can highlight the result output of cts:element

Syntax highlighting in Oracle browser something like SQL Server Management Studio

允我心安 提交于 2019-12-11 07:12:37
问题 Hi I use long time MS SQL and SQL Server Management Studio no I start with oracle and try some SQL command in Oracle browser but it hasn’t any syntax highlighting. It exist something like SQL Server Mamagement Studio for Oracle? 回答1: If you are happy with installing something locally (or at least unzipping it), go with Xavinou's suggestion of SQL Developer or one of the commercial IDEs such as TOAD or PL/SQL Developer 来源: https://stackoverflow.com/questions/5129520/syntax-highlighting-in