Hey Amish,

Might be someone has better option however I can think of maintaining a
thesaurus for all type of possible combinations with upper case letter and
do the exact search for other elements except lower case.


Also you approach might fail incase, any word with upper case letter might
be present in the document where a word with lower case. I mean "worker"
and "Worker" can be present in a single document so you can not exclude
that results from your list.

Regards,
Indy

On Wed, Nov 25, 2015 at 11:57 PM, Shah, Amish (LNG-CON) <
[email protected]> wrote:

> Marklogic version used by me version 7 or 8:
>
>
>
> Looks like Marklogic provides the ability to do case-sensitive and
> case-insensitive search and we can set those options with a combination of
> filtered or unfiltered search.
>
> It also provides a mechanism to index the documents using fast case
> sensitive searches option in the configure part of the database, of course
> index will affect the results from filtered or unfiltered.
>
> Our application wants to start supporting mechanism where we want to find
> any letter in the word which may upper case.
>
>
>
> For example  a search for anyletterupperCase (worker)
>
> Should give matches for
>
>   Worker
>
>   WOrker
>
>   workEr
>
>
>
>
>
> but no match for
>
>    worker
>
>
>
> match words where uppercase can happen.  I could not find any search
> option or feature which would help me come to what I need (atleast so far).
>
>
>
> Any help or thoughts if something close to above is supported.
>
>
>
> Solution that I can think of
>
> --------------------------------
>
> For simplicity lets assume that there is only one occurrence of word
> worker in each of  my documents
>
>
>
> One solution I was thinking was,
>
> To do a search with “exact” on worker lets call the search result as
>  (List_exact)
>
>
>
> This should give me list of documents that I can exclude
>
> Then do a case-insensitive search on worker, call the search result as
>  (List_general)
>
>
>
> Resultant_list  = list_general – list_exact
>
>
>
> Resultant_list will have occurences of worker where any word would be
> uppercase
>
>
>
> Inefficiency is that my solution involve two searches.
>
>
>
> Thanks in advance
>
> Amish
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to