I am migrating from lucene to solr and I am not quite sure how do what I
need to.

 

I need to do a search that will search 3 different fields and combine
the results.  First, it needs to not break the phrase into tokens, but
rather treat it is a phrase for one field.  The other fields need to be
parsed with their normal analyzers.

 

In Lucene, I did the following:

 

1.    Ran the query through my custom analyzer and then created a
PhraseQuery and then did a search

2.    Used a MultiFieldQueryParser for the other two fields and then did
a search

3.    Combined the results of (1) and (2) into a Set and returned them.

 

How can do the same thing in Solr?

 

Thanks.

 

Jason

 

 

 

 

 

 

 

Reply via email to