> > If you use string type for summaryExact you can run
> this query summaryExact:my\ item* It will bring you all
> documents begins with my item.
> 
> Actually it won't. The data I am indexing has extra spaces
> in front
> and is capitalized. I really need to be able to filter it
> through the
> lowercase and trim filter without tokenizing it.
> Is there a way to apply filters to the string type (I am
> pretty sure
> there is not)?

As you said you cannot apply. But you can mimic it with KeywordTokenizer + 
TrimFilter + LowercaseFilter combination.

> This doesn't seem to align with the results I am seeing
> when I do searches. Are you saying that if I do a search like this it
> will boost the phrase matches while still doing token matches?
> q=summary:"my item"^5

Exactly. However you need to add individual terms also : 
&q=summary:("my item"^5 my item)
Can you test this query? I think this is what you are looking for.

Just for your information: About multi-valued fields there is a 
positionIncrementGap value that puts space between multiple fields of this type 
on the same document, with the purpose of preventing false phrase matching 
across fields. 


      

Reply via email to