ome.services.search
Class SomeMustNone

java.lang.Object
  extended by ome.services.search.SearchAction
      extended by ome.services.search.FullText
          extended by ome.services.search.SomeMustNone
All Implemented Interfaces:
Serializable, Executor.Work

public class SomeMustNone
extends FullText

FullText subclass which parses 3 arrays of strings into into a single Lucene query. If no text is produced, then an exception will be thrown. Some terms are joined in to "( a OR b OR c)", must terms are turned into "+d +e +f", and none terms are turned into "-g -h -i".

Since:
3.0-Beta3
Author:
Josh Moore, josh at glencoesoftware.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ome.services.search.SearchAction
chainedList, values
 
Constructor Summary
SomeMustNone(SearchValues values, String[] some, String[] must, String[] none, Class<? extends Analyzer> analyzer)
           
 
Method Summary
protected static String parse(String[] some, String[] must, String[] none)
           
 
Methods inherited from class ome.services.search.FullText
doWork
 
Methods inherited from class ome.services.search.SearchAction
annotatedBetween, annotatedBetween, annotatedBy, annotatedBy, chainedSearch, copyOfValues, createdOrModified, createdOrModified, description, ids, ids, notNullOrLikeOrEqual, notNullOrLikeOrEqual, orderByAscending, orderByPath, ownerOrGroup, ownerOrGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SomeMustNone

public SomeMustNone(SearchValues values,
                    String[] some,
                    String[] must,
                    String[] none,
                    Class<? extends Analyzer> analyzer)
Method Detail

parse

protected static String parse(String[] some,
                              String[] must,
                              String[] none)


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

Copyright © 2009 The University of Dundee. All Rights Reserved.