Examples of highlight()


Examples of org.elasticsearch.search.builder.SearchSourceBuilder.highlight()

      // post tags
      if (hlsimplepost != null) {
        highlightBuilder.postTags(hlsimplepost);
      }

      searchSourceBuilder.highlight(highlightBuilder);

    }

    // handle faceting
    if (facet) {
View Full Code Here

Examples of org.elasticsearch.search.builder.SearchSourceBuilder.highlight()

      // post tags
      if (hlsimplepost != null) {
        highlightBuilder.postTags(hlsimplepost);
      }

      searchSourceBuilder.highlight(highlightBuilder);

    }

    // handle faceting
    if (facet) {
View Full Code Here

Examples of org.elasticsearch.search.internal.SearchContext.highlight()

                BoundaryScanner boundaryScanner = DEFAULT_BOUNDARY_SCANNER;
                if (field.fieldOptions().boundaryMaxScan() != SimpleBoundaryScanner.DEFAULT_MAX_SCAN || field.fieldOptions().boundaryChars() != SimpleBoundaryScanner.DEFAULT_BOUNDARY_CHARS) {
                    boundaryScanner = new SimpleBoundaryScanner(field.fieldOptions().boundaryMaxScan(), field.fieldOptions().boundaryChars());
                }
                boolean forceSource = context.highlight().forceSource(field);
                if (field.fieldOptions().numberOfFragments() == 0) {
                    fragListBuilder = new SingleFragListBuilder();

                    if (!forceSource && mapper.fieldType().stored()) {
                        fragmentsBuilder = new SimpleFragmentsBuilder(mapper, field.fieldOptions().preTags(), field.fieldOptions().postTags(), boundaryScanner);
View Full Code Here

Examples of org.emftrace.quarc.ui.zest.nodes.GSSElementGraphNode.highlight()

        for (int i = 0; i < ((Graph) e.widget).getSelection().size(); i++)
          if (((Graph) e.widget).getSelection().get(i) instanceof GSSElementGraphNode) {
            GSSElementGraphNode selectedNode = (GSSElementGraphNode) ((Graph) e.widget)
                .getSelection().get(i);

            selectedNode.highlight();
            selectedNode.mark();
            selectedNode.markChildren();
            selectedNode.markParents();
          }
      }
View Full Code Here

Examples of org.richfaces.ui.component.Highlight.highlight()

      } catch (NoClassDefFoundError e) {
        renderErrorMessage(context, component, "HIGHLIGHT_LIBRARY_NOT_FOUND");
        highlighter = new DummyHighLight();
      }
      try {
        highlighter.highlight(component.getSrc(), inputStream, writer,
            encoding);
      } catch (IOException e) {
        throw new FacesException(e);
      } finally {
        inputStream.close();
View Full Code Here

Examples of org.richfaces.ui.component.Highlight.highlight()

      } catch (NoClassDefFoundError e) {
        renderErrorMessage(context, component, "HIGHLIGHT_LIBRARY_NOT_FOUND");
        highlighter = new DummyHighLight();
      }
      try {
        highlighter.highlight(component.getSrc(), inputStream, writer,
            encoding);
      } catch (IOException e) {
        throw new FacesException(e);
      } finally {
        inputStream.close();
View Full Code Here

Examples of org.richfaces.ui.component.Highlight.highlight()

      } catch (NoClassDefFoundError e) {
        renderErrorMessage(context, component, "HIGHLIGHT_LIBRARY_NOT_FOUND");
        highlighter = new DummyHighLight();
      }
      try {
        highlighter.highlight(component.getSrc(), inputStream, writer,
            encoding);
      } catch (IOException e) {
        throw new FacesException(e);
      } finally {
        inputStream.close();
View Full Code Here

Examples of syn3d.base.ActiveNode.highlight()

    public ActiveNode pick(int posX, int posY) {

        int s = lastPickSelection.size();
        for (int i=0; i<s; i+=2) {
            ActiveNode node = (ActiveNode)lastPickSelection.get(i);
            node.highlight(false,lastPickSelection.get(i+1));
        }
        lastPickSelection.clear();
        toggleSinglePick(posX,posY);
        if (lastPickSelection.size()>0) return (ActiveNode)lastPickSelection.get(0);
        return null;
View Full Code Here

Examples of syn3d.base.ActiveNode.highlight()

     */
    public ActiveNode pick(int posX, int posY) {
        int s = lastPickSelection.size();
        for (int i=0; i<s; i+=2) {
            ActiveNode node = (ActiveNode)lastPickSelection.get(i);
            node.highlight(false,lastPickSelection.get(i+1));
        }
        lastPickSelection.clear();
        toggleSinglePick(posX,posY);
        if (lastPickSelection.size()>0) return (ActiveNode)lastPickSelection.get(0);
        return null;
View Full Code Here

Examples of syn3d.base.ActiveNode.highlight()

        autoHighlight = false;
       
        TreePath[] paths = e.getPaths();
        for (int i=0; i<paths.length; ++i) {
            ActiveNode node = (ActiveNode)paths[i].getLastPathComponent();
            node.highlight(e.isAddedPath(i), node.get3DObject());
        }
       
        autoHighlight = highlightSave;
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.