Problem with parentheses


(anjireddy vangala) #1

Hi,

stmt1 :- I need to search text inside parentheses only if user specifies otherwise inside parentheses not searchable.

tried sol: used whitespace analyser and if parentheses in string then string passing like '\8(1)'

Ex:-
search text : Rights Act, 1933 — Section 8(1)
Document : Womens Rights Act, 1933 — Section 4, 8(1)
Results: 1 results found -- correct

stmt2:- search text does not contain parentheses but document contain parentheses needs to find doc
Ex:-
search text : Rights Act, 1933 — Section 8
Document : Womens Rights Act, 1933 — Section 4, 8(1)
Results: 0 results found -- incorrect

In this scenario i need to find document. (i am not able to use standard analyser bcoz i dont want find any thing inside parentheses until they specify.)


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.